------------------------------- Captured stdout ------------------------------- running ['D:\\Projekte\\support\\pytest-cov\\.tox\\py27\\Scripts\\python.exe', 'D:\\Projekte\\support\\pytest-cov\\.tox\\py27\\lib\\site-packages\\pytest.py', '--basetemp=c:\\users\\schlaich\\appdata\\local\\temp\\pytest-128\\testdir\\test_multiprocessing_subprocess0\\runpytest-0', '-v', '--cov=c:\\users\\schlaich\\appdata\\local\\temp\\pytest-128\\testdir\\test_multiprocessing_subprocess0', '--cov-report=term-missing', 'c:\\users\\schlaich\\appdata\\local\\temp\\pytest-128\\testdir\\test_multiprocessing_subprocess0\\test_multiprocessing_subprocess.py'] curdir= c:\users\schlaich\appdata\local\temp\pytest-128\testdir\test_multiprocessing_subprocess0 ============================= test session starts ============================= platform win32 -- Python 2.7.6 -- py-1.4.20 -- pytest-2.5.2 -- D:\Projekte\support\pytest-cov\.tox\py27\Scripts\python.exe plugins: xdist, cov collecting ... collected 1 items test_multiprocessing_subprocess.py:7: test_run_target FAILED ================================== FAILURES =================================== _______________________________ test_run_target _______________________________ def test_run_target(): p = multiprocessing.Process(target=target_fn) > p.start() test_multiprocessing_subprocess.py:9: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def start(self): ''' Start child process ''' assert self._popen is None, 'cannot start a process twice' assert self._parent_pid == os.getpid(), \ 'can only start a process object created by current process' assert not _current_process._daemonic, \ 'daemonic processes are not allowed to have children' _cleanup() if self._Popen is not None: Popen = self._Popen else: from .forking import Popen > self._popen = Popen(self) c:\python27\Lib\multiprocessing\process.py:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = process_obj = def __init__(self, process_obj): # create pipe for communication with child rfd, wfd = os.pipe() # get handle for read end of the pipe and make it inheritable rhandle = duplicate(msvcrt.get_osfhandle(rfd), inheritable=True) os.close(rfd) # start process > cmd = get_command_line() + [rhandle] c:\python27\Lib\multiprocessing\forking.py:258: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_command_line(): ''' Returns prefix of command line used for spawning a child process ''' if getattr(process.current_process(), '_inheriting', False): raise 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.''') if getattr(sys, 'frozen', False): return [sys.executable, '--multiprocessing-fork'] else: prog = 'from multiprocessing.forking import main; main()' > opts = util._args_from_interpreter_flags() c:\python27\Lib\multiprocessing\forking.py:364: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _args_from_interpreter_flags(): """Return a list of command-line arguments reproducing the current settings in sys.flags and sys.warnoptions.""" flag_opt_map = { 'debug': 'd', # 'inspect': 'i', # 'interactive': 'i', 'optimize': 'O', 'dont_write_bytecode': 'B', 'no_user_site': 's', 'no_site': 'S', 'ignore_environment': 'E', 'verbose': 'v', 'bytes_warning': 'b', 'hash_randomization': 'R', 'py3k_warning': '3', } args = [] for flag, opt in flag_opt_map.items(): v = getattr(sys.flags, flag) print opt, flag, v if v > 0: > args.append('-' + opt * v) E MemoryError c:\python27\Lib\subprocess.py:509: MemoryError ------------------------------- Captured stdout ------------------------------- S no_site 0 R hash_randomization 2147483647