You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows running lode_runner with both --with-xunit and --processes>0 will result in test runner freezing:
(wp4_10) D:\Projects\sabers_wp4>lode_runner wp4\tests\test_musttest.py --with-xunit --processes=2
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Python27-10\Lib\multiprocessing\forking.py", line 381, in main
self = load(from_parent)
File "C:\Python27-10\Lib\pickle.py", line 1378, in load
return Unpickler(file).load()
File "C:\Python27-10\Lib\pickle.py", line 858, in load
dispatch[key](self)
File "C:\Python27-10\Lib\pickle.py", line 1090, in load_global
klass = self.find_class(module, name)
File "C:\Python27-10\Lib\pickle.py", line 1124, in find_class
__import__(module)
File "C:\Users\n.abalov\Envs\wp4_10\lib\site-packages\lode_runner\xunit.py", line 12, in <module>
MANAGER = multiprocessing.Manager()
File "C:\Python27-10\Lib\multiprocessing\__init__.py", line 99, in Manager
m.start()
File "C:\Python27-10\Lib\multiprocessing\managers.py", line 524, in start
self._process.start()
File "C:\Python27-10\Lib\multiprocessing\process.py", line 130, in start
self._popen = Popen(self)
File "C:\Python27-10\Lib\multiprocessing\forking.py", line 258, in __init__
cmd = get_command_line() + [rhandle]
File "C:\Python27-10\Lib\multiprocessing\forking.py", line 358, in get_command_line
is not going to be frozen to produce a Windows executable.''')
RuntimeError:
Attempt to start a new process before the current process
has finished its bootstrapping phase.
This probably means that you are on Windows and you have
forgotten to use the proper idiom in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce a Windows executable.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Python27-10\Lib\multiprocessing\forking.py", line 381, in main
self = load(from_parent)
File "C:\Python27-10\Lib\pickle.py", line 1378, in load
return Unpickler(file).load()
File "C:\Python27-10\Lib\pickle.py", line 858, in load
dispatch[key](self)
File "C:\Python27-10\Lib\pickle.py", line 1090, in load_global
klass = self.find_class(module, name)
File "C:\Python27-10\Lib\pickle.py", line 1124, in find_class
__import__(module)
File "C:\Users\n.abalov\Envs\wp4_10\lib\site-packages\lode_runner\xunit.py", line 12, in <module>
MANAGER = multiprocessing.Manager()
File "C:\Python27-10\Lib\multiprocessing\__init__.py", line 99, in Manager
m.start()
File "C:\Python27-10\Lib\multiprocessing\managers.py", line 524, in start
self._process.start()
File "C:\Python27-10\Lib\multiprocessing\process.py", line 130, in start
self._popen = Popen(self)
File "C:\Python27-10\Lib\multiprocessing\forking.py", line 258, in __init__
cmd = get_command_line() + [rhandle]
File "C:\Python27-10\Lib\multiprocessing\forking.py", line 358, in get_command_line
is not going to be frozen to produce a Windows executable.''')
RuntimeError:
Attempt to start a new process before the current process
has finished its bootstrapping phase.
This probably means that you are on Windows and you have
forgotten to use the proper idiom in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce a Windows executable.
The text was updated successfully, but these errors were encountered:
On Windows running lode_runner with both
--with-xunit
and--processes
>0 will result in test runner freezing:The text was updated successfully, but these errors were encountered: