Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0c42f73

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

File tree

3 files changed

+5
-5
lines changed
Filter options

3 files changed

+5
-5
lines changed

‎Lib/test/test_module/__init__.py

Copy file name to clipboardExpand all lines: Lib/test/test_module/__init__.py
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: Lib/test/test_module/final_a.py
+2-2Lines changed: 2 additions & 2 deletions
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

Copy file name to clipboardExpand all lines: Lib/test/test_module/final_b.py
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.