mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-104015: Fix direct invocation of test_dataclasses
(#104017)
Previously, `python -m test test_dataclasses` passed, but `./python.exe Lib/test/test_dataclasses.py` failed
This commit is contained in:
parent
7d3931e94a
commit
654d44b3a4
1 changed files with 1 additions and 1 deletions
|
@ -3671,7 +3671,7 @@ class TestStringAnnotations(unittest.TestCase):
|
|||
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)],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue