@@ -3002,17 +3002,18 @@ def test_basic_multiple_interpreters_deleted_no_reset(self):
3002
3002
# * module's global state was initialized but cleared
3003
3003
3004
3004
# 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
+ ''' )
3009
3010
self .check_common (base )
3010
3011
self .check_fresh (base )
3011
3012
3012
3013
# At this point:
3013
3014
# * alive in 0 interpreters
3014
3015
# * module def in _PyRuntime.imports.extensions
3015
- # * mod init func ran again
3016
+ # * mod init func ran for the first time (since reset)
3016
3017
# * m_copy is NULL (claered when the interpreter was destroyed)
3017
3018
# * module's global state was initialized, not reset
3018
3019
@@ -3024,7 +3025,7 @@ def test_basic_multiple_interpreters_deleted_no_reset(self):
3024
3025
# At this point:
3025
3026
# * alive in 1 interpreter (interp1)
3026
3027
# * module def still in _PyRuntime.imports.extensions
3027
- # * mod init func ran again
3028
+ # * mod init func ran for the second time (since reset)
3028
3029
# * m_copy was copied from interp1 (was NULL)
3029
3030
# * module's global state was updated, not reset
3030
3031
@@ -3036,7 +3037,7 @@ def test_basic_multiple_interpreters_deleted_no_reset(self):
3036
3037
# At this point:
3037
3038
# * alive in 2 interpreters (interp1, interp2)
3038
3039
# * module def still in _PyRuntime.imports.extensions
3039
- # * mod init func ran again
3040
+ # * mod init func did not run again
3040
3041
# * m_copy was copied from interp2 (was from interp1)
3041
3042
# * module's global state was updated, not reset
3042
3043
0 commit comments