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 83f3142

Browse filesBrowse files
Fix some comments.
1 parent d59a95e commit 83f3142
Copy full SHA for 83f3142

File tree

Expand file treeCollapse file tree

1 file changed

+8
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-7
lines changed

‎Lib/test/test_import/__init__.py

Copy file name to clipboardExpand all lines: Lib/test/test_import/__init__.py
+8-7Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3002,17 +3002,18 @@ def test_basic_multiple_interpreters_deleted_no_reset(self):
30023002
# * module's global state was initialized but cleared
30033003

30043004
# Start with an interpreter that gets destroyed right away.
3005-
base = self.import_in_subinterp(postscript='''
3006-
# Attrs set after loading are not in m_copy.
3007-
mod.spam = 'spam, spam, mash, spam, eggs, and spam'
3008-
''')
3005+
base = self.import_in_subinterp(
3006+
postscript='''
3007+
# Attrs set after loading are not in m_copy.
3008+
mod.spam = 'spam, spam, mash, spam, eggs, and spam'
3009+
''')
30093010
self.check_common(base)
30103011
self.check_fresh(base)
30113012

30123013
# At this point:
30133014
# * alive in 0 interpreters
30143015
# * module def in _PyRuntime.imports.extensions
3015-
# * mod init func ran again
3016+
# * mod init func ran for the first time (since reset)
30163017
# * m_copy is NULL (claered when the interpreter was destroyed)
30173018
# * module's global state was initialized, not reset
30183019

@@ -3024,7 +3025,7 @@ def test_basic_multiple_interpreters_deleted_no_reset(self):
30243025
# At this point:
30253026
# * alive in 1 interpreter (interp1)
30263027
# * module def still in _PyRuntime.imports.extensions
3027-
# * mod init func ran again
3028+
# * mod init func ran for the second time (since reset)
30283029
# * m_copy was copied from interp1 (was NULL)
30293030
# * module's global state was updated, not reset
30303031

@@ -3036,7 +3037,7 @@ def test_basic_multiple_interpreters_deleted_no_reset(self):
30363037
# At this point:
30373038
# * alive in 2 interpreters (interp1, interp2)
30383039
# * module def still in _PyRuntime.imports.extensions
3039-
# * mod init func ran again
3040+
# * mod init func did not run again
30403041
# * m_copy was copied from interp2 (was from interp1)
30413042
# * module's global state was updated, not reset
30423043

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.