Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit105f500

Browse files
committed
Test attribute access and importing separately
Rather than only testing attribute access.
1 parentb7a3d8c commit105f500

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎test/deprecation/test_attributes.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22

33
importpytest
44

5-
importgit
65

6+
deftest_cannot_get_undefined()->None:
7+
importgit
78

8-
deftest_no_attribute()->None:
99
withpytest.raises(AttributeError):
1010
git.foo
11+
12+
13+
deftest_cannot_import_undefined()->None:
14+
withpytest.raises(ImportError):
15+
fromgitimportfoo

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp