Title: Intermittent minor glitches with tests on Windows · Issue #3128 · python/mypy · GitHub
Open Graph Title: Intermittent minor glitches with tests on Windows · Issue #3128 · python/mypy
X Title: Intermittent minor glitches with tests on Windows · Issue #3128 · python/mypy
Description: This is very low priority, but I wanted to keep it for the record in case something similar happens on Linux. A couple of minor problems that occur: on my platform (Windows 10 x64, python 3.6 ) on the version before #3019 was merged into...
Open Graph Description: This is very low priority, but I wanted to keep it for the record in case something similar happens on Linux. A couple of minor problems that occur: on my platform (Windows 10 x64, python 3.6 ) on ...
X Description: This is very low priority, but I wanted to keep it for the record in case something similar happens on Linux. A couple of minor problems that occur: on my platform (Windows 10 x64, python 3.6 ) on ...
Opengraph URL: https://github.com/python/mypy/issues/3128
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Intermittent minor glitches with tests on Windows","articleBody":"This is very low priority, but I wanted to keep it for the record in case something similar happens on Linux.\r\n\r\nA couple of minor problems that occur:\r\n\r\n- on my platform (Windows 10 x64, python 3.6 )\r\n- on the version before #3019 was merged into master (haven't tried it after, but I don't think there's going to be any difference)\r\n- with the (default) parallel workers enabled\r\n\r\n1 Test errors out because it's unable to delete temp directory due to files still present (by the time the test fully completes, the directory is empty); this happens intermittently (and extremely rarely)\r\n2 `pytest -x` crashes because of worker trying to communicate to a non-existent process (I'm not sure if it's similar to #2940 or not, I haven't looked into it yet); this seems to be 100% reproducible\r\n\r\nListings of the two tracebacks below.\r\n\r\n## Traceback for problem 1\r\n\r\n```\r\nC:\\Downloads\\mypy>python runtests.py -j4\r\nPARALLEL 4\r\nSUMMARY 139 tasks selected\r\npassed 36, failed 1, pending 99; running 3\r\n\r\nFAILURE #29 pytest mypy\\test\\testcheck.py\r\n\r\n============================= test session starts =============================\r\nplatform win32 -- Python 3.6.0, pytest-3.0.6, py-1.4.32, pluggy-0.4.0\r\nrootdir: C:\\Downloads\\mypy, inifile: pytest.ini\r\nplugins: xdist-1.15.0, cov-2.4.0, hypothesis-3.7.0, celery-4.0.2\r\ngw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I\r\ngw0 [2320] / gw1 [2320] / gw2 [2320] / gw3 [2320] / gw4 [2320] / gw5 [2320] / gw6 [2320] / gw7 [2320]\r\n\r\nscheduling tests via LoadScheduling\r\n............................s........................................................................................................................................................................................................................................................................................................................................................................................................................................................s..........................................................................s........................................................s............................................................................s.................................................................................................................................................................................................................................................................................................................................................s.............................................................................................................................................................................................................................................................s.s......ss....................s.............................................................................................................................................................................................................................................................................................................................................................................................................................................................E...............................................................................................................................................................................................................................................................s.........................................................................................................s....................................................................................................s..........ss..................................................................................................\r\n=================================== ERRORS ====================================\r\n______ ERROR at teardown of testIncrementalSilentImportsWithInnerImports ______\r\n[gw4] win32 -- Python 3.6.0 C:\\AppData\\Local\\Programs\\Python\\Python36\\python.exe\r\nself = \u003cCallInfo when='teardown' exception: [WinError 145] The directory is not empty: 'C:\\\\Users\\\\maxmo\\\\Downloads\\\\mypy\\\\tmp-test-dirs\\\\mypy-test-ek1cwzsc'>\r\nfunc = \u003cfunction call_runtest_hook.\u003clocals>.\u003clambda> at 0x000002A4D3CCB510>\r\nwhen = 'teardown'\r\n\r\n def __init__(self, func, when):\r\n #: context of invocation: one of \"setup\", \"call\",\r\n #: \"teardown\", \"memocollect\"\r\n self.when = when\r\n self.start = time()\r\n try:\r\n> self.result = func()\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\_pytest\\runner.py:163:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\n> return CallInfo(lambda: ihook(item=item, **kwds), when=when)\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\_pytest\\runner.py:151:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003c_HookCaller 'pytest_runtest_teardown'>\r\nkwargs = {'__multicall__': \u003c_MultiCall 0 results, 0 meths, kwargs={'item': \u003cMypyDataCase 'testIncrementalSilentImportsWithInner...alSilentImportsWithInnerImports'>, 'nextitem': \u003cMypyDataCase 'testIncrementalSilentImportsWithInnerImportsAndNewFile'>}\r\n\r\n def __call__(self, **kwargs):\r\n assert not self.is_historic()\r\n> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py:745:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003c_pytest.config.PytestPluginManager object at 0x000002A4D1FA17B8>\r\nhook = \u003c_HookCaller 'pytest_runtest_teardown'>, methods = []\r\nkwargs = {'__multicall__': \u003c_MultiCall 0 results, 0 meths, kwargs={'item': \u003cMypyDataCase 'testIncrementalSilentImportsWithInner...alSilentImportsWithInnerImports'>, 'nextitem': \u003cMypyDataCase 'testIncrementalSilentImportsWithInnerImportsAndNewFile'>}\r\n\r\n def _hookexec(self, hook, methods, kwargs):\r\n # called from all hookcaller instances.\r\n # enable_tracing will set its own wrapping function at self._inner_hookexec\r\n> return self._inner_hookexec(hook, methods, kwargs)\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py:339:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nhook = \u003c_HookCaller 'pytest_runtest_teardown'>, methods = []\r\nkwargs = {'__multicall__': \u003c_MultiCall 0 results, 0 meths, kwargs={'item': \u003cMypyDataCase 'testIncrementalSilentImportsWithInner...alSilentImportsWithInnerImports'>, 'nextitem': \u003cMypyDataCase 'testIncrementalSilentImportsWithInnerImportsAndNewFile'>}\r\n\r\n self._inner_hookexec = lambda hook, methods, kwargs: \\\r\n> _MultiCall(methods, kwargs, hook.spec_opts).execute()\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py:334:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003c_MultiCall 0 results, 0 meths, kwargs={'item': \u003cMypyDataCase 'testIncrementalSilentImportsWithInnerImports'>, 'nextit...tIncrementalSilentImportsWithInnerImportsAndNewFile'>, '__multicall__': \u003c_MultiCall 0 results, 0 meths, kwargs={...}>}>\r\n\r\n def execute(self):\r\n all_kwargs = self.kwargs\r\n self.results = results = []\r\n firstresult = self.specopts.get(\"firstresult\")\r\n\r\n while self.hook_impls:\r\n hook_impl = self.hook_impls.pop()\r\n try:\r\n args = [all_kwargs[argname] for argname in hook_impl.argnames]\r\n except KeyError:\r\n for argname in hook_impl.argnames:\r\n if argname not in all_kwargs:\r\n raise HookCallError(\r\n \"hook call must provide argument %r\" % (argname,))\r\n if hook_impl.hookwrapper:\r\n> return _wrapped_call(hook_impl.function(*args), self.execute)\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py:613:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nwrap_controller = \u003cgenerator object CaptureManager.pytest_runtest_teardown at 0x000002A4D4322BA0>\r\nfunc = \u003cbound method _MultiCall.execute of \u003c_MultiCall 0 results, 0 meths, kwargs={'item': \u003cMypyDataCase 'testIncrementalSile...IncrementalSilentImportsWithInnerImportsAndNewFile'>, '__multicall__': \u003c_MultiCall 0 results, 0 meths, kwargs={...}>}>>\r\n\r\n def _wrapped_call(wrap_controller, func):\r\n \"\"\" Wrap calling to a function with a generator which needs to yield\r\n exactly once. The yield point will trigger calling the wrapped function\r\n and return its _CallOutcome to the yield point. The generator then needs\r\n to finish (raise StopIteration) in order for the wrapped call to complete.\r\n \"\"\"\r\n try:\r\n next(wrap_controller) # first yield\r\n except StopIteration:\r\n _raise_wrapfail(wrap_controller, \"did not yield\")\r\n call_outcome = _CallOutcome(func)\r\n try:\r\n wrap_controller.send(call_outcome)\r\n _raise_wrapfail(wrap_controller, \"has second yield\")\r\n except StopIteration:\r\n pass\r\n> return call_outcome.get_result()\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py:254:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003c_pytest.vendored_packages.pluggy._CallOutcome object at 0x000002A4D4B47080>\r\n\r\n def get_result(self):\r\n if self.excinfo is None:\r\n return self.result\r\n else:\r\n ex = self.excinfo\r\n if _py3:\r\n> raise ex[1].with_traceback(ex[2])\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py:279:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003c_pytest.vendored_packages.pluggy._CallOutcome object at 0x000002A4D4B47080>\r\nfunc = \u003cbound method _MultiCall.execute of \u003c_MultiCall 0 results, 0 meths, kwargs={'item': \u003cMypyDataCase 'testIncrementalSile...IncrementalSilentImportsWithInnerImportsAndNewFile'>, '__multicall__': \u003c_MultiCall 0 results, 0 meths, kwargs={...}>}>>\r\n\r\n def __init__(self, func):\r\n try:\r\n> self.result = func()\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py:265:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003c_MultiCall 0 results, 0 meths, kwargs={'item': \u003cMypyDataCase 'testIncrementalSilentImportsWithInnerImports'>, 'nextit...tIncrementalSilentImportsWithInnerImportsAndNewFile'>, '__multicall__': \u003c_MultiCall 0 results, 0 meths, kwargs={...}>}>\r\n\r\n def execute(self):\r\n all_kwargs = self.kwargs\r\n self.results = results = []\r\n firstresult = self.specopts.get(\"firstresult\")\r\n\r\n while self.hook_impls:\r\n hook_impl = self.hook_impls.pop()\r\n try:\r\n args = [all_kwargs[argname] for argname in hook_impl.argnames]\r\n except KeyError:\r\n for argname in hook_impl.argnames:\r\n if argname not in all_kwargs:\r\n raise HookCallError(\r\n \"hook call must provide argument %r\" % (argname,))\r\n if hook_impl.hookwrapper:\r\n return _wrapped_call(hook_impl.function(*args), self.execute)\r\n> res = hook_impl.function(*args)\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py:614:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nitem = \u003cMypyDataCase 'testIncrementalSilentImportsWithInnerImports'>\r\nnextitem = \u003cMypyDataCase 'testIncrementalSilentImportsWithInnerImportsAndNewFile'>\r\n\r\n def pytest_runtest_teardown(item, nextitem):\r\n> item.session._setupstate.teardown_exact(item, nextitem)\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\_pytest\\runner.py:116:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003c_pytest.runner.SetupState object at 0x000002A4D3CD7048>\r\nitem = \u003cMypyDataCase 'testIncrementalSilentImportsWithInnerImports'>\r\nnextitem = \u003cMypyDataCase 'testIncrementalSilentImportsWithInnerImportsAndNewFile'>\r\n\r\n def teardown_exact(self, item, nextitem):\r\n needed_collectors = nextitem and nextitem.listchain() or []\r\n> self._teardown_towards(needed_collectors)\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\_pytest\\runner.py:432:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003c_pytest.runner.SetupState object at 0x000002A4D3CD7048>\r\nneeded_collectors = [\u003cSession 'mypy'>, \u003cModule 'mypy/test/testcheck.py'>, \u003cMypyDataSuite 'TypeCheckSuite'>, \u003cMypyDataCase 'testIncrementalSilentImportsWithInnerImportsAndNewFile'>]\r\n\r\n def _teardown_towards(self, needed_collectors):\r\n while self.stack:\r\n if self.stack == needed_collectors[:len(self.stack)]:\r\n break\r\n> self._pop_and_teardown()\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\_pytest\\runner.py:438:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003c_pytest.runner.SetupState object at 0x000002A4D3CD7048>\r\n\r\n def _pop_and_teardown(self):\r\n colitem = self.stack.pop()\r\n> self._teardown_with_finalization(colitem)\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\_pytest\\runner.py:398:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003c_pytest.runner.SetupState object at 0x000002A4D3CD7048>\r\ncolitem = \u003cMypyDataCase 'testIncrementalSilentImportsWithInnerImports'>\r\n\r\n def _teardown_with_finalization(self, colitem):\r\n self._callfinalizers(colitem)\r\n if hasattr(colitem, \"teardown\"):\r\n> colitem.teardown()\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\_pytest\\runner.py:418:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003cMypyDataCase 'testIncrementalSilentImportsWithInnerImports'>\r\n\r\n def teardown(self) -> None:\r\n> self.obj.tear_down()\r\n\r\nmypy\\test\\data.py:483:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003cmypy.test.data.DataDrivenTestCase object at 0x000002A4D4618D30>\r\n\r\n def tear_down(self) -> None:\r\n # First remove files.\r\n for is_dir, path in reversed(self.clean_up):\r\n if not is_dir:\r\n remove(path)\r\n # Then remove directories.\r\n for is_dir, path in reversed(self.clean_up):\r\n if is_dir:\r\n pycache = os.path.join(path, '__pycache__')\r\n if os.path.isdir(pycache):\r\n shutil.rmtree(pycache)\r\n try:\r\n rmdir(path)\r\n except OSError as error:\r\n print(' ** Error removing directory %s -- contents:' % path)\r\n for item in os.listdir(path):\r\n print(' ', item)\r\n # Most likely, there are some files in the\r\n # directory. Use rmtree to nuke the directory, but\r\n # fail the test case anyway, since this seems like\r\n # a bug in a test case -- we shouldn't leave\r\n # garbage lying around. By nuking the directory,\r\n # the next test run hopefully passes.\r\n path = error.filename\r\n # Be defensive -- only call rmtree if we're sure we aren't removing anything\r\n # valuable.\r\n if path.startswith('tmp/') and os.path.isdir(path):\r\n shutil.rmtree(path)\r\n raise\r\n> super().tear_down()\r\n\r\nmypy\\test\\data.py:256:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003cmypy.test.data.DataDrivenTestCase object at 0x000002A4D4618D30>\r\n\r\n def tear_down(self) -> None:\r\n if self.suite:\r\n self.suite.tear_down()\r\n os.chdir(self.old_cwd)\r\n> self.tmpdir.cleanup()\r\n\r\nmypy\\myunit\\__init__.py:134:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = \u003cTemporaryDirectory 'C:\\\\Users\\\\maxmo\\\\Downloads\\\\mypy\\\\tmp-test-dirs\\\\mypy-test-ek1cwzsc'>\r\n\r\n def cleanup(self):\r\n if self._finalizer.detach():\r\n> _shutil.rmtree(self.name)\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\tempfile.py:811:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\npath = 'C:\\\\Users\\\\maxmo\\\\Downloads\\\\mypy\\\\tmp-test-dirs\\\\mypy-test-ek1cwzsc'\r\nignore_errors = False\r\nonerror = \u003cfunction rmtree.\u003clocals>.onerror at 0x000002A4D4A57488>\r\n\r\n def rmtree(path, ignore_errors=False, onerror=None):\r\n \"\"\"Recursively delete a directory tree.\r\n\r\n If ignore_errors is set, errors are ignored; otherwise, if onerror\r\n is set, it is called to handle the error with arguments (func,\r\n path, exc_info) where func is platform and implementation dependent;\r\n path is the argument to that function that caused it to fail; and\r\n exc_info is a tuple returned by sys.exc_info(). If ignore_errors\r\n is false and onerror is None, an exception is raised.\r\n\r\n \"\"\"\r\n if ignore_errors:\r\n def onerror(*args):\r\n pass\r\n elif onerror is None:\r\n def onerror(*args):\r\n raise\r\n if _use_fd_functions:\r\n # While the unsafe rmtree works fine on bytes, the fd based does not.\r\n if isinstance(path, bytes):\r\n path = os.fsdecode(path)\r\n # Note: To guard against symlink races, we use the standard\r\n # lstat()/open()/fstat() trick.\r\n try:\r\n orig_st = os.lstat(path)\r\n except Exception:\r\n onerror(os.lstat, path, sys.exc_info())\r\n return\r\n try:\r\n fd = os.open(path, os.O_RDONLY)\r\n except Exception:\r\n onerror(os.lstat, path, sys.exc_info())\r\n return\r\n try:\r\n if os.path.samestat(orig_st, os.fstat(fd)):\r\n _rmtree_safe_fd(fd, path, onerror)\r\n try:\r\n os.rmdir(path)\r\n except OSError:\r\n onerror(os.rmdir, path, sys.exc_info())\r\n else:\r\n try:\r\n # symlinks to directories are forbidden, see bug #1669\r\n raise OSError(\"Cannot call rmtree on a symbolic link\")\r\n except OSError:\r\n onerror(os.path.islink, path, sys.exc_info())\r\n finally:\r\n os.close(fd)\r\n else:\r\n> return _rmtree_unsafe(path, onerror)\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\shutil.py:488:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\npath = 'C:\\\\Users\\\\maxmo\\\\Downloads\\\\mypy\\\\tmp-test-dirs\\\\mypy-test-ek1cwzsc'\r\nonerror = \u003cfunction rmtree.\u003clocals>.onerror at 0x000002A4D4A57488>\r\n\r\n def _rmtree_unsafe(path, onerror):\r\n try:\r\n if os.path.islink(path):\r\n # symlinks to directories are forbidden, see bug #1669\r\n raise OSError(\"Cannot call rmtree on a symbolic link\")\r\n except OSError:\r\n onerror(os.path.islink, path, sys.exc_info())\r\n # can't continue even if onerror hook returns\r\n return\r\n names = []\r\n try:\r\n names = os.listdir(path)\r\n except OSError:\r\n onerror(os.listdir, path, sys.exc_info())\r\n for name in names:\r\n fullname = os.path.join(path, name)\r\n try:\r\n mode = os.lstat(fullname).st_mode\r\n except OSError:\r\n mode = 0\r\n if stat.S_ISDIR(mode):\r\n _rmtree_unsafe(fullname, onerror)\r\n else:\r\n try:\r\n os.unlink(fullname)\r\n except OSError:\r\n onerror(os.unlink, fullname, sys.exc_info())\r\n try:\r\n os.rmdir(path)\r\n except OSError:\r\n> onerror(os.rmdir, path, sys.exc_info())\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\shutil.py:387:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\npath = 'C:\\\\Users\\\\maxmo\\\\Downloads\\\\mypy\\\\tmp-test-dirs\\\\mypy-test-ek1cwzsc'\r\nonerror = \u003cfunction rmtree.\u003clocals>.onerror at 0x000002A4D4A57488>\r\n\r\n def _rmtree_unsafe(path, onerror):\r\n try:\r\n if os.path.islink(path):\r\n # symlinks to directories are forbidden, see bug #1669\r\n raise OSError(\"Cannot call rmtree on a symbolic link\")\r\n except OSError:\r\n onerror(os.path.islink, path, sys.exc_info())\r\n # can't continue even if onerror hook returns\r\n return\r\n names = []\r\n try:\r\n names = os.listdir(path)\r\n except OSError:\r\n onerror(os.listdir, path, sys.exc_info())\r\n for name in names:\r\n fullname = os.path.join(path, name)\r\n try:\r\n mode = os.lstat(fullname).st_mode\r\n except OSError:\r\n mode = 0\r\n if stat.S_ISDIR(mode):\r\n _rmtree_unsafe(fullname, onerror)\r\n else:\r\n try:\r\n os.unlink(fullname)\r\n except OSError:\r\n onerror(os.unlink, fullname, sys.exc_info())\r\n try:\r\n> os.rmdir(path)\r\nE OSError: [WinError 145] The directory is not empty: 'C:\\\\Users\\\\maxmo\\\\Downloads\\\\mypy\\\\tmp-test-dirs\\\\mypy-test-ek1cwzsc'\r\n\r\n..\\..\\AppData\\Local\\Programs\\Python\\Python36\\lib\\shutil.py:385: OSError\r\n============== 2304 passed, 16 skipped, 1 error in 24.70 seconds ==============\r\n\r\nSUMMARY 1/139 tasks and 1/139 tests failed\r\n FAILURE pytest mypy\\test\\testcheck.py\r\nSUMMARY 1/139 tasks and 1/139 tests failed\r\n*** FAILURE ***\r\n\r\nC:\\Downloads\\mypy>\r\n```\r\n\r\n## Traceback for problem 2\r\n\r\n```\r\nC:\\Downloads\\mypy>pytest -x\r\n============================= test session starts =============================\r\nplatform win32 -- Python 3.6.0, pytest-3.0.6, py-1.4.32, pluggy-0.4.0\r\nrootdir: C:\\Downloads\\mypy, inifile: pytest.ini\r\nplugins: xdist-1.15.0, cov-2.4.0, hypothesis-3.7.0, celery-4.0.2\r\ngw0 [2326] / gw1 [2326] / gw2 [2326] / gw3 [2326] / gw4 [2326] / gw5 [2326] / gw6 [2326] / gw7 [2326]\r\nscheduling tests via LoadScheduling\r\n....................s...........................................................................................................................................................................................................................................................................................................................F\r\n================================== FAILURES ===================================\r\n_______________________________ testMinusAssign _______________________________\r\n[gw5] win32 -- Python 3.6.0 c:\\appdata\\local\\programs\\python\\python36\\python.exe\r\ndata: C:\\Downloads\\mypy\\test-data\\unit\\check-statements.test:232:\r\n..\\..\\mypy\\test\\testcheck.py:111: in run_case\r\n self.run_case_once(testcase)\r\n..\\..\\mypy\\test\\testcheck.py:188: in run_case_once\r\n assert_string_arrays_equal(output, a, msg.format(testcase.file, testcase.line))\r\n..\\..\\mypy\\test\\helpers.py:85: in assert_string_arrays_equal\r\n raise AssertionFailure(msg)\r\nE mypy.myunit.AssertionFailure: Invalid type checker output (C:\\Downloads\\mypy\\test-data\\unit\\check-statements.test, line 232)\r\n---------------------------- Captured stderr call -----------------------------\r\nExpected:\r\n main:3: error: Unsupported operand types for - (\"A\" and \"B\")\r\n main:4: error: Result type of - incompatible in assignment (diff)\r\n main:5: error: Unsupported left operand type for - (\"C\")\r\nActual:\r\n main:3: error: Unsupported operand types for - (\"A\" and \"B\")\r\n main:4: error: Incompatible types in assignment (expression has type \"C\", variable has type \"B\") (diff)\r\n main:5: error: Unsupported left operand type for - (\"C\")\r\n\r\nAlignment of first line difference:\r\n E: main:4: error: Result type of - incompatible in assignment...\r\n A: main:4: error: Incompatible types in assignment (expression has type \"C\"...\r\n ^\r\n!!!!!!!!!!!! xdist.dsession.Interrupted: stopping after 1 failures !!!!!!!!!!!!\r\n=============== 1 failed, 335 passed, 1 skipped in 8.38 seconds ===============\r\nINTERNALERROR> Traceback (most recent call last):\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 984, in _send\r\nINTERNALERROR> message.to_io(self._io)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 430, in to_io\r\nINTERNALERROR> io.write(header+self.data)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 397, in write\r\nINTERNALERROR> self.outfile.flush()\r\nINTERNALERROR> OSError: [Errno 22] Invalid argument\r\nINTERNALERROR>\r\nINTERNALERROR> During handling of the above exception, another exception occurred:\r\nINTERNALERROR>\r\nINTERNALERROR> Traceback (most recent call last):\r\n\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\main.py\", line 98, in wrap_session\r\nC:\\Downloads\\mypy>INTERNALERROR> session.exitstatus = doit(config, session) or 0\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\main.py\", line 133, in _main\r\nINTERNALERROR> config.hook.pytest_runtestloop(session=session)\r\nINTERNALERROR> Traceback (most recent call last):\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 745, in __call__\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 984, in _send\r\nINTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\nINTERNALERROR> message.to_io(self._io)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 339, in _hookexec\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 430, in to_io\r\nINTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)\r\nINTERNALERROR> io.write(header+self.data)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 334, in \u003clambda>\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 397, in write\r\nINTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()\r\nINTERNALERROR> self.outfile.flush()\r\nINTERNALERROR> Traceback (most recent call last):\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 614, in execute\r\nINTERNALERROR> OSError: [Errno 22] Invalid argument\r\nINTERNALERROR>\r\nINTERNALERROR> Traceback (most recent call last):\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 984, in _send\r\nINTERNALERROR> message.to_io(self._io)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 430, in to_io\r\nINTERNALERROR> io.write(header+self.data)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 984, in _send\r\nINTERNALERROR> During handling of the above exception, another exception occurred:\r\nINTERNALERROR> res = hook_impl.function(*args)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 397, in write\r\nINTERNALERROR> message.to_io(self._io)\r\nINTERNALERROR>\r\nINTERNALERROR> File \"\u003cremote exec>\", line 61, in pytest_runtestloop\r\nINTERNALERROR> self.outfile.flush()\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 430, in to_io\r\nINTERNALERROR> Traceback (most recent call last):\r\nINTERNALERROR> File \"\u003cremote exec>\", line 77, in run_tests\r\nINTERNALERROR> OSError: [Errno 22] Invalid argument\r\nINTERNALERROR> io.write(header+self.data)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\main.py\", line 98, in wrap_session\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 745, in __call__\r\nINTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 339, in _hookexec\r\nINTERNALERROR> session.exitstatus = doit(config, session) or 0\r\nINTERNALERROR>\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 397, in write\r\nINTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\main.py\", line 133, in _main\r\nINTERNALERROR> During handling of the above exception, another exception occurred:\r\nINTERNALERROR> self.outfile.flush()\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 334, in \u003clambda>\r\nINTERNALERROR> config.hook.pytest_runtestloop(session=session)\r\nINTERNALERROR>\r\nINTERNALERROR> OSError: [Errno 22] Invalid argument\r\nINTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 745, in __call__\r\nINTERNALERROR> Traceback (most recent call last):\r\nINTERNALERROR>\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 613, in execute\r\nINTERNALERROR> return _wrapped_call(hook_impl.function(*args), self.execute)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 254, in _wrapped_call\r\nINTERNALERROR> return call_outcome.get_result()\r\nINTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\main.py\", line 98, in wrap_session\r\nINTERNALERROR> session.exitstatus = doit(config, session) or 0\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\main.py\", line 133, in _main\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 339, in _hookexec\r\nINTERNALERROR> During handling of the above exception, another exception occurred:\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 279, in get_result\r\nINTERNALERROR> config.hook.pytest_runtestloop(session=session)\r\nINTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)\r\nINTERNALERROR>\r\nINTERNALERROR> raise ex[1].with_traceback(ex[2])\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 745, in __call__\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 334, in \u003clambda>\r\nINTERNALERROR> Traceback (most recent call last):\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 265, in __init__\r\nINTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\nINTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\main.py\", line 98, in wrap_session\r\nINTERNALERROR> self.result = func()\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 339, in _hookexec\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 614, in execute\r\nINTERNALERROR> session.exitstatus = doit(config, session) or 0\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 614, in execute\r\nINTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)\r\nINTERNALERROR> res = hook_impl.function(*args)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\main.py\", line 133, in _main\r\nINTERNALERROR> res = hook_impl.function(*args)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\runner.py\", line 66, in pytest_runtest_protocol\r\nINTERNALERROR> runtestprotocol(item, nextitem=nextitem)\r\nINTERNALERROR> config.hook.pytest_runtestloop(session=session)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 334, in \u003clambda>\r\nINTERNALERROR> File \"\u003cremote exec>\", line 61, in pytest_runtestloop\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\runner.py\", line 73, in runtestprotocol\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 745, in __call__\r\nINTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 614, in execute\r\nINTERNALERROR> rep = call_and_report(item, \"setup\", log)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\runner.py\", line 137, in call_and_report\r\nINTERNALERROR> hook.pytest_runtest_logreport(report=report)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 745, in __call__\r\nINTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 339, in _hookexec\r\nINTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)\r\nINTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\nINTERNALERROR> File \"\u003cremote exec>\", line 77, in run_tests\r\nINTERNALERROR> res = hook_impl.function(*args)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 745, in __call__\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 339, in _hookexec\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 334, in \u003clambda>\r\nINTERNALERROR> File \"\u003cremote exec>\", line 61, in pytest_runtestloop\r\nINTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\nINTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)\r\nINTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()\r\nINTERNALERROR> File \"\u003cremote exec>\", line 77, in run_tests\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 339, in _hookexec\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 334, in \u003clambda>\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 614, in execute\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 745, in __call__\r\nINTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)\r\nINTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()\r\nINTERNALERROR> res = hook_impl.function(*args)\r\nINTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 334, in \u003clambda>\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 614, in execute\r\nINTERNALERROR> File \"\u003cremote exec>\", line 92, in pytest_runtest_logreport\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 339, in _hookexec\r\nINTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 334, in \u003clambda>\r\nINTERNALERROR> File \"\u003cremote exec>\", line 25, in sendevent\r\nINTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()\r\nINTERNALERROR> res = hook_impl.function(*args)\r\nINTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 613, in execute\r\nINTERNALERROR> return _wrapped_call(hook_impl.function(*args), self.execute)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 254, in _wrapped_call\r\nINTERNALERROR> return call_outcome.get_result()\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 613, in execute\r\nINTERNALERROR> File \"\u003cremote exec>\", line 61, in pytest_runtestloop\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 717, in send\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 279, in get_result\r\nINTERNALERROR> return _wrapped_call(hook_impl.function(*args), self.execute)\r\nINTERNALERROR> File \"\u003cremote exec>\", line 77, in run_tests\r\nINTERNALERROR> self.gateway._send(Message.CHANNEL_DATA, self.id, dumps_internal(item))\r\nINTERNALERROR> raise ex[1].with_traceback(ex[2])\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 254, in _wrapped_call\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 745, in __call__\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 990, in _send\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 265, in __init__\r\nINTERNALERROR> return call_outcome.get_result()\r\nINTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\nINTERNALERROR> raise IOError(\"cannot send (already closed?)\")\r\nINTERNALERROR> self.result = func()\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 279, in get_result\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 339, in _hookexec\r\nINTERNALERROR> OSError: cannot send (already closed?)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 614, in execute\r\nINTERNALERROR> raise ex[1].with_traceback(ex[2])\r\nINTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)\r\nINTERNALERROR> res = hook_impl.function(*args)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 265, in __init__\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 334, in \u003clambda>\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\runner.py\", line 66, in pytest_runtest_protocol\r\nINTERNALERROR> self.result = func()\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 614, in execute\r\nINTERNALERROR> runtestprotocol(item, nextitem=nextitem)\r\nINTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 613, in execute\r\nINTERNALERROR> return _wrapped_call(hook_impl.function(*args), self.execute)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 254, in _wrapped_call\r\nINTERNALERROR> return call_outcome.get_result()\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 279, in get_result\r\nINTERNALERROR> raise ex[1].with_traceback(ex[2])\r\nINTERNALERROR> res = hook_impl.function(*args)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\runner.py\", line 79, in runtestprotocol\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 265, in __init__\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\runner.py\", line 64, in pytest_runtest_protocol\r\nINTERNALERROR> reports.append(call_and_report(item, \"call\", log))\r\nINTERNALERROR> self.result = func()\r\nINTERNALERROR> nodeid=item.nodeid, location=item.location,\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\runner.py\", line 137, in call_and_report\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 614, in execute\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 745, in __call__\r\nINTERNALERROR> hook.pytest_runtest_logreport(report=report)\r\nINTERNALERROR> res = hook_impl.function(*args)\r\nINTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 745, in __call__\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\runner.py\", line 66, in pytest_runtest_protocol\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 339, in _hookexec\r\nINTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\nINTERNALERROR> runtestprotocol(item, nextitem=nextitem)\r\nINTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 339, in _hookexec\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\runner.py\", line 79, in runtestprotocol\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 334, in \u003clambda>\r\nINTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)\r\nINTERNALERROR> reports.append(call_and_report(item, \"call\", log))\r\nINTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 334, in \u003clambda>\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\runner.py\", line 137, in call_and_report\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 614, in execute\r\nINTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()\r\nINTERNALERROR> hook.pytest_runtest_logreport(report=report)\r\nINTERNALERROR> res = hook_impl.function(*args)\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 614, in execute\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 745, in __call__\r\nINTERNALERROR> File \"\u003cremote exec>\", line 86, in pytest_runtest_logstart\r\nINTERNALERROR> res = hook_impl.function(*args)\r\nINTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\nINTERNALERROR> File \"\u003cremote exec>\", line 25, in sendevent\r\nINTERNALERROR> File \"\u003cremote exec>\", line 92, in pytest_runtest_logreport\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 339, in _hookexec\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 717, in send\r\nINTERNALERROR> File \"\u003cremote exec>\", line 25, in sendevent\r\nINTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)\r\nINTERNALERROR> self.gateway._send(Message.CHANNEL_DATA, self.id, dumps_internal(item))\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 717, in send\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 334, in \u003clambda>\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 990, in _send\r\nINTERNALERROR> self.gateway._send(Message.CHANNEL_DATA, self.id, dumps_internal(item))\r\nINTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()\r\nINTERNALERROR> raise IOError(\"cannot send (already closed?)\")\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 990, in _send\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 614, in execute\r\nINTERNALERROR> OSError: cannot send (already closed?)\r\nINTERNALERROR> raise IOError(\"cannot send (already closed?)\")\r\nINTERNALERROR> res = hook_impl.function(*args)\r\nINTERNALERROR> OSError: cannot send (already closed?)\r\nINTERNALERROR> File \"\u003cremote exec>\", line 92, in pytest_runtest_logreport\r\nINTERNALERROR> File \"\u003cremote exec>\", line 25, in sendevent\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 717, in send\r\nINTERNALERROR> self.gateway._send(Message.CHANNEL_DATA, self.id, dumps_internal(item))\r\nINTERNALERROR> File \"c:\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\execnet\\gateway_base.py\", line 990, in _send\r\nINTERNALERROR> raise IOError(\"cannot send (already closed?)\")\r\nINTERNALERROR> OSError: cannot send (already closed?)\r\n\r\n```","author":{"url":"https://github.com/pkch","@type":"Person","name":"pkch"},"datePublished":"2017-04-04T05:56:04Z","url":"https://github.com/python/mypy/issues/3128"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7d640885-183e-ce9a-0cd6-282f2261c14f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 84F8:3F9D33:21E5F61:2E06CAB:6B0024E9 |
| html-safe-nonce | fb32916026205f1b451c5b846f197e6c7c3b79dceed46b2d1d3b37f18b4afbbd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEY4OjNGOUQzMzoyMUU1RjYxOjJFMDZDQUI6NkIwMDI0RTkiLCJ2aXNpdG9yX2lkIjoiODQ3NDM1NjYyODcyMjgyMDMyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3f3659c1f209b6e29b568b447a504e16ae2929830f95a2ba8a6fc2c8117d3d36 |
| hovercard-subject-tag | issue:219147431 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/mypy/3128/issue_layout |
| twitter:image | https://opengraph.githubassets.com/42b6d75cdb3b39a4f178f898dc5ab8795a6a55ab316832d97123fa41e3574462/python/mypy/issues/3128 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/42b6d75cdb3b39a4f178f898dc5ab8795a6a55ab316832d97123fa41e3574462/python/mypy/issues/3128 |
| og:image:alt | This is very low priority, but I wanted to keep it for the record in case something similar happens on Linux. A couple of minor problems that occur: on my platform (Windows 10 x64, python 3.6 ) on ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pkch |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width