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

Commit4181d07

Browse files
authored
gh-104036: Fix direct invocation of test_typing (#104037)
Previously, `python -m test test_typing` worked, but `python Lib/test/test_typing.py` did not.
1 parent59c27fa commit4181d07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Lib/test/test_typing.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def test_repr(self):
117117
classSub(Any):pass
118118
self.assertEqual(
119119
repr(Sub),
120-
"<class 'test.test_typing.AnyTests.test_repr.<locals>.Sub'>",
120+
f"<class '{__name__}.AnyTests.test_repr.<locals>.Sub'>",
121121
)
122122

123123
deftest_errors(self):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp