@@ -658,6 +658,7 @@ def parse(cls, text):
658
658
return self
659
659
660
660
661
+ @requires_load_dynamic
661
662
class SinglephaseInitTests (unittest .TestCase ):
662
663
663
664
NAME = '_testsinglephase'
@@ -898,7 +899,6 @@ def check_copied(self, loaded, base):
898
899
#########################
899
900
# the tests
900
901
901
- @requires_load_dynamic
902
902
def test_cleared_globals (self ):
903
903
loaded = self .load (self .NAME )
904
904
_testsinglephase = loaded .module
@@ -912,7 +912,6 @@ def test_cleared_globals(self):
912
912
self .assertEqual (init_after , 0 )
913
913
self .assertEqual (init_count , - 1 )
914
914
915
- @requires_load_dynamic
916
915
def test_variants (self ):
917
916
# Exercise the most meaningful variants described in Python/import.c.
918
917
self .maxDiff = None
@@ -996,7 +995,6 @@ def test_variants(self):
996
995
self .assertIs (basic .look_up_self (), basic_lookedup )
997
996
self .assertEqual (basic .initialized_count (), expected_init_count )
998
997
999
- @requires_load_dynamic
1000
998
def test_basic_reloaded (self ):
1001
999
# m_copy is copied into the existing module object.
1002
1000
# Global state is not changed.
@@ -1039,7 +1037,6 @@ def test_basic_reloaded(self):
1039
1037
1040
1038
self .assertIs (reloaded .snapshot .cached , reloaded .module )
1041
1039
1042
- @requires_load_dynamic
1043
1040
def test_with_reinit_reloaded (self ):
1044
1041
# The module's m_init func is run again.
1045
1042
self .maxDiff = None
@@ -1088,7 +1085,6 @@ def test_with_reinit_reloaded(self):
1088
1085
# which is shared by all interpreters.
1089
1086
1090
1087
@requires_subinterpreters
1091
- @requires_load_dynamic
1092
1088
def test_basic_multiple_interpreters_main_no_reset (self ):
1093
1089
# without resetting; already loaded in main interpreter
1094
1090
@@ -1157,7 +1153,6 @@ def test_basic_multiple_interpreters_main_no_reset(self):
1157
1153
# * module's global state was updated, not reset
1158
1154
1159
1155
@requires_subinterpreters
1160
- @requires_load_dynamic
1161
1156
def test_basic_multiple_interpreters_deleted_no_reset (self ):
1162
1157
# without resetting; already loaded in a deleted interpreter
1163
1158
0 commit comments