Skip to content

Commit

Permalink
pythongh-108303: Create Lib/test/test_dataclasses/ directory
Browse files Browse the repository at this point in the history
Move test_dataclasses.py and its "dataclass_*.py" modules into the
new Lib/test/test_dataclasses/ subdirectory.
  • Loading branch information
vstinner committed Sep 6, 2023
1 parent 6f8411c commit 9e416a8
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3684,10 +3684,10 @@ class C:
self.assertEqual(C(10).x, 10)

def test_classvar_module_level_import(self):
from test import dataclass_module_1
from test import dataclass_module_1_str
from test import dataclass_module_2
from test import dataclass_module_2_str
from test.test_dataclasses import dataclass_module_1
from test.test_dataclasses import dataclass_module_1_str
from test.test_dataclasses import dataclass_module_2
from test.test_dataclasses import dataclass_module_2_str

for m in (dataclass_module_1, dataclass_module_1_str,
dataclass_module_2, dataclass_module_2_str,
Expand Down Expand Up @@ -3725,7 +3725,7 @@ def test_classvar_module_level_import(self):
self.assertNotIn('not_iv4', c.__dict__)

def test_text_annotations(self):
from test import dataclass_textanno
from test.test_dataclasses import dataclass_textanno

self.assertEqual(
get_type_hints(dataclass_textanno.Bar),
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -2156,6 +2156,7 @@ TESTSUBDIRS= idlelib/idle_test \
test/test_capi \
test/test_cppext \
test/test_ctypes \
test/test_dataclasses \
test/test_email \
test/test_email/data \
test/test_import \
Expand Down

0 comments on commit 9e416a8

Please sign in to comment.