② pytst-xdist 不支持多线程; ③pytest-parallel 支持python3.6及以上版本,所以如果想做多进程并发在linux或者mac上做,在Windows上不起作用(Workers=1),如果做多线程linux/mac/windows平台都支持,进程数为workers的值。 去期待陌生,去拥抱惊喜。
①在windows上进程数永远为1。 ②需要使用 if name == “main” :,在dos中运行会报错(即在命令行窗口运行测试用例会报错) 示例: pytest test.py --workers 3:3个进程运行pytest test.py --tests-per-worker 4 :4个线程运行pytest test.py --workers 2 --tests-per-worker 4:2个进程并行,且每个进程最...
INTERNALERROR> """ INTERNALERROR> self._active_nodes.remove(node) INTERNALERROR> try: INTERNALERROR> > assert False, formatted_error INTERNALERROR> E AssertionError: Traceback (most recent call last): INTERNALERROR> E File "C:\Users\JSMITH\repos\project\venv\Lib\site-packages\execnet\gateway_base...
Finally, I am on windows. Note that this test is run with the hello world application given by Google. Any other app engine application I've tested causes the same hang. Also, I have tried a Popen that simply runs python, and this does not result in the same hang. ...