Skip to content

Commit

Permalink
bpo-34181: Fix running Lib/test/test_typing.py as a script. (pythonGH…
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka committed Jul 21, 2018
1 parent 938045f commit 9613609
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,9 +651,9 @@ class W(X[int]):

def test_repr(self):
self.assertEqual(repr(SimpleMapping),
"<class 'test.test_typing.SimpleMapping'>")
f"<class '{__name__}.SimpleMapping'>")
self.assertEqual(repr(MySimpleMapping),
"<class 'test.test_typing.MySimpleMapping'>")
f"<class '{__name__}.MySimpleMapping'>")

def test_chain_repr(self):
T = TypeVar('T')
Expand Down

0 comments on commit 9613609

Please sign in to comment.