mirror of
https://github.com/python/cpython.git
synced 2026-04-05 11:29:03 +00:00
[3.11] gh-104036: Fix direct invocation of test_typing (GH-104037) (#104039)
gh-104036: Fix direct invocation of test_typing (GH-104037)
Previously, `python -m test test_typing` worked, but `python Lib/test/test_typing.py` did not.
(cherry picked from commit 4181d078fc)
Co-authored-by: Kirill Podoprigora <80244920+Eclips4@users.noreply.github.com>
This commit is contained in:
parent
d8055b889c
commit
1be8bed236
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ def test_repr(self):
|
|||
class Sub(Any): pass
|
||||
self.assertEqual(
|
||||
repr(Sub),
|
||||
"<class 'test.test_typing.AnyTests.test_repr.<locals>.Sub'>",
|
||||
f"<class '{__name__}.AnyTests.test_repr.<locals>.Sub'>",
|
||||
)
|
||||
|
||||
def test_errors(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue