@@ -778,32 +778,33 @@ def run_hpy_unittests(python_binary, args=None, include_native=True):
778
778
mx .log ("Ensure 'setuptools' is installed" )
779
779
mx .run ([python_binary ] + args + ["-m" , "ginstall" , "install" , "--user" , "pytest" ], nonZeroIsFatal = True , env = env )
780
780
# parallelize
781
- import threading
782
- threads = []
783
- lock = threading .RLock ()
784
-
785
- class RaisingThread (threading .Thread ):
786
- def run (self ):
787
- self .exc = None
788
- try :
789
- super ().run ()
790
- except Exception as e : # pylint: disable=broad-except;
791
- self .exc = e
781
+ # import threading
782
+ # threads = []
783
+ # lock = threading.RLock()
784
+ #
785
+ # class RaisingThread(threading.Thread):
786
+ # def run(self):
787
+ # self.exc = None
788
+ # try:
789
+ # super().run()
790
+ # except Exception as e: # pylint: disable=broad-except;
791
+ # self.exc = e
792
792
793
793
abi_list = ['cpython' , 'universal' , 'debug' ]
794
794
if include_native :
795
795
abi_list .append ('nfi' )
796
796
for abi in abi_list :
797
797
env ["TEST_HPY_ABI" ] = abi
798
- threads .append (RaisingThread (target = run_python_unittests , args = (python_binary , ), kwargs = {
799
- "args" : args , "paths" : [_hpy_test_root ()], "env" : env .copy (), "use_pytest" : True , "lock" : lock ,
800
- }))
801
- threads [- 1 ].start ()
802
- for t in threads :
803
- t .join ()
804
- for t in threads :
805
- if t .exc :
806
- raise t .exc
798
+ run_python_unittests (python_binary , args = args , paths = [_hpy_test_root ()], env = env .copy (), use_pytest = True )
799
+ # threads.append(RaisingThread(target=run_python_unittests, args=(python_binary, ), kwargs={
800
+ # "args": args, "paths": [_hpy_test_root()], "env": env.copy(), "use_pytest": True, "lock": lock,
801
+ # }))
802
+ # threads[-1].start()
803
+ # for t in threads:
804
+ # t.join()
805
+ # for t in threads:
806
+ # if t.exc:
807
+ # raise t.exc
807
808
808
809
809
810
def run_tagged_unittests (python_binary , env = None , cwd = None ):
0 commit comments