Skip to content

Commit

Permalink
gh-104015: Fix direct invocation of test_dataclasses (#104017)
Browse files Browse the repository at this point in the history
Previously, `python -m test test_dataclasses` passed, but `./python.exe Lib/test/test_dataclasses.py` failed
  • Loading branch information
sobolevn committed Apr 30, 2023
1 parent 7d3931e commit 654d44b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -3671,7 +3671,7 @@ def test_text_annotations(self):
ByMakeDataClass = make_dataclass('ByMakeDataClass', [('x', int)])
ManualModuleMakeDataClass = make_dataclass('ManualModuleMakeDataClass',
[('x', int)],
module='test.test_dataclasses')
module=__name__)
WrongNameMakeDataclass = make_dataclass('Wrong', [('x', int)])
WrongModuleMakeDataclass = make_dataclass('WrongModuleMakeDataclass',
[('x', int)],
Expand Down

0 comments on commit 654d44b

Please sign in to comment.