Skip to content

Commit 0c42f73

Browse files
authored
gh-108303: Move more files to Lib/test/test_module (#111880)
1 parent 0372e3b commit 0c42f73

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Lib/test/test_module/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def test_module_repr_source(self):
266266

267267
def test_module_finalization_at_shutdown(self):
268268
# Module globals and builtins should still be available during shutdown
269-
rc, out, err = assert_python_ok("-c", "from test import final_a")
269+
rc, out, err = assert_python_ok("-c", "from test.test_module import final_a")
270270
self.assertFalse(err)
271271
lines = out.splitlines()
272272
self.assertEqual(set(lines), {

Lib/test/final_a.py renamed to Lib/test/test_module/final_a.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"""
44

55
import shutil
6-
import test.final_b
6+
import test.test_module.final_b
77

88
x = 'a'
99

1010
class C:
1111
def __del__(self):
1212
# Inspect module globals and builtins
1313
print("x =", x)
14-
print("final_b.x =", test.final_b.x)
14+
print("final_b.x =", test.test_module.final_b.x)
1515
print("shutil.rmtree =", getattr(shutil.rmtree, '__name__', None))
1616
print("len =", getattr(len, '__name__', None))
1717

Lib/test/final_b.py renamed to Lib/test/test_module/final_b.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"""
44

55
import shutil
6-
import test.final_a
6+
import test.test_module.final_a
77

88
x = 'b'
99

1010
class C:
1111
def __del__(self):
1212
# Inspect module globals and builtins
1313
print("x =", x)
14-
print("final_a.x =", test.final_a.x)
14+
print("final_a.x =", test.test_module.final_a.x)
1515
print("shutil.rmtree =", getattr(shutil.rmtree, '__name__', None))
1616
print("len =", getattr(len, '__name__', None))
1717

0 commit comments

Comments
 (0)