python / mypy

Optional static typing for Python
https://www.mypy-lang.org/
Other
18.41k stars 2.82k forks source link

Issue with lower case drive names when running tests on Windows #12880

Open edreamleo opened 2 years ago

edreamleo commented 2 years ago

Documentation

I am attempting to run unit tests as preparation to submitting a PR. There are other problems on Linux, but this issue applies to Windows.

The setup instructions in CONTRIBUTING.md do not work on Windows. Presumably as a result, a large number of unit tests fail. The following instructions would seem to need modification:

1: source venv/bin/activate

Googling probably provides the workaround: define activate.cmd as venv\Scripts\activate, and similarly for deactivate. Ah. Just now I see just now that the venv docs discuss the source command.

  1. hash -r

I have no idea what this means. Googling does not help and "hash" does not appear in venv.html. After:

python3 -m pip install -r test-requirements.txt
python3 -m pip install -e .

which hash (Linux) and where hash (Windows) yield nothing (either before and after activate).

Some file searching finds ...mypy\venv\Lib\site-packages\pip\_internal\commands\hash.py, but various invocations of pip hash, such as pip hash -r and pip hash -r . do not work.

Any help would be appreciated. Thanks.

AlexWaygood commented 2 years ago

Hi! I'm a mypy contributor on Windows.

I work from the Windows command line, so I usually use "venv/scripts/activate.bat" to activate the virtual environment.

I also spent a while googling the hash -r thing when I first started contributing. I still don't know what it means, and have never succeeded in getting any equivalent command to work on my machine, but it doesn't seem to have affected anything :)

Several mypyc tests fail on my machine. I think maybe a few daemon tests do too -- can't remember. I've never worked on either of those areas, so it's never bothered me too much! (Somebody should probably fix that at some point, though.) If you scroll to the bottom of this page here, there's a README with some advice for running specific parts of the test suite, which is useful (it takes forever to run the whole thing, anyway): https://github.com/python/mypy/tree/master/test-data/unit

The self-type-check also used to fail on Windows before my PR https://github.com/python/mypy/pull/11909 was merged :)

edreamleo commented 2 years ago

@AlexWaygood Hi Alex. Thanks for your comments!

I'm kinda sorry that you have been able to skip hash -r, because a lot of tests are failing for me on Windows. I suspect that venv isn't insulating the tests from my idiosyncratic environment.

I'll definitely try running just a few tests. And maybe just one test, to dig deeper into why it is failing.

Thanks again. You've given me some hope :-)

JelleZijlstra commented 2 years ago

I got curious about hash and found this helpful: https://unix.stackexchange.com/questions/86012/what-is-the-purpose-of-the-hash-command (man hash didn't give me anything useful on either Ubuntu or macOS.)

Basically, it clears the shell's internal cache that maps commands to their locations on the search path. I suppose it's there because activating a venv puts new things on the path. If your Windows terminal doesn't have an equivalent cache, there's no need to run the command.

hauntsaninja commented 2 years ago

(I'm responsible for this terrible Windows unfriendly documentation) Yes, hash is a shell builtin. It's not there because of the venv activate — venv activate actually calls hash -r itself. It's there because of new console scripts added as part of pip install:

# before pip install, these executables point to some other mypy installation i have
(mypy-wwwl) ~/dev/mypy master λ which mypy    
/Users/shantanu/.local/bin/mypy
(mypy-wwwl) ~/dev/mypy master λ which stubtest
/Users/shantanu/.local/bin/stubtest
(mypy-wwwl) ~/dev/mypy master λ pip install -e .                    
...
# after pip install, these executables still point to some other mypy installation i have
(mypy-wwwl) ~/dev/mypy master λ which mypy    
/Users/shantanu/.local/bin/mypy
(mypy-wwwl) ~/dev/mypy master λ which stubtest
/Users/shantanu/.local/bin/stubtest
# rehashing gets things to point to the mypy i just installed editably
(mypy-wwwl) ~/dev/mypy master λ hash -r
(mypy-wwwl) ~/dev/mypy master λ which mypy    
/Users/shantanu/.virtualenvs/mypy-wwwl/bin/mypy
(mypy-wwwl) ~/dev/mypy master λ which stubtest
/Users/shantanu/.virtualenvs/mypy-wwwl/bin/stubtest

Would gladly welcome improvements that make things friendly for Windows contributors.

Regarding running the tests: we're also very happy for you to open a draft PR and rely on CI to run tests.

pranavrajpal commented 2 years ago

a lot of tests are failing for me on Windows

Maybe you could try pasting the output of pytest here? I'm on Windows too and I'm only getting 11 failing mypyc tests, so it should be possible to fix those tests, and someone here might have some insights for the causes.

You could also just use CI to run the tests, especially if they're unrelated to what you're working on, but I'm guessing that's less convenient than running tests locally while developing.

edreamleo commented 2 years ago

@JelleZijlstra Thanks for the info about hash -r! My guess is that there is no need to run anything like it with Windows Console, which is what I use.

edreamleo commented 2 years ago

@hauntsaninja :-) It's a pleasure to be part of this community. Writing install documentation is supremely difficult. Saying everything necessary and nothing more is impossible, because readers have different levels of experience. Leo's install docs are far from exemplary.

I'm an interesting combination of experienced dev and newbie as far as venv and linux goes: I haven't (yet) learned what not to do. So I might be an ideal tester for mypy's unit tests. I'm happy to help find glitches in the unit testing process. That might be more important than my PR :-)

You said, "we're also very happy for you to open a draft PR and rely on CI to run tests." What do you mean by CI?

edreamleo commented 2 years ago

@pranavrajpal Will do, later today. Oh, I think I see. CI means Continuous Integration, right? In other words, don't sweat the tests.

However, I'd like to drive my development with some new tests, so I'm eager to come up to speed on testing.

edreamleo commented 2 years ago

@pranavrajpal Here are the results of running unit tests with pytest:

18 failed, 10081 passed, 380 skipped, 10 xfailed in 441.05s (0:07:21)

If these failures look reasonable to you I won't worry about them!

Note: I'd use <details>, but it makes a mess of the output.

```console c:\Repos\mypy>activate (venv) c:\Repos\mypy>pytest ================================================= test session starts ================================================= platform win32 -- Python 3.10.4, pytest-7.1.2, pluggy-1.0.0 rootdir: c:\Repos\mypy, configfile: pytest.ini, testpaths: mypy/test, mypyc/test plugins: cov-2.12.1, forked-1.4.0, xdist-2.5.0 gw0 [10489] / gw1 [10489] / gw2 [10489] / gw3 [10489] / gw4 [10489] / gw5 [10489] / gw6 [10489] / gw7 [10489] ...................................s..........................................................................x.. [ 1%] ................................................................................................................. [ 2%] ................................................................................................................ [ 3%] ................................................................................................................ [ 4%] ................................................................................................................ [ 5%] ................................................................................................................ [ 6%] ................................................................................................................ [ 7%] .....................................................................s..s....................................... [ 8%] ....................................................................s........................................... [ 9%] ............................................s................................................................... [ 10%] ................................................................................................................ [ 11%] ................................................................................................................ [ 12%] ................................................................................................................ [ 13%] ....................................................................s........................................... [ 14%] ................................................................................................................ [ 16%] .................................................................................................................. [ 17%] ................................................................................................................ [ 18%] ................................................................................................................ [ 19%] ................................................................................................................. [ 20%] ............................................................................................s................... [ 21%] .................................................................................................................. [ 22%] ............................................................F................................................... [ 23%] ................................................................................................................ [ 24%] .................................................................................................................. [ 25%] ....................................................................................................s.s.......... [ 26%] ..s.............................................................................................................. [ 27%] ................................................................................................................ [ 28%] ................................................................................................................ [ 30%] ................................................................................................................. [ 31%] ................................................................................................................. [ 32%] ................................................................................................................ [ 33%] ................................................................................................................ [ 34%] .....................................s.......................................................................... [ 35%] ................................................................................................................ [ 36%] ................................................................................................................ [ 37%] ..................................s............................................................................. [ 38%] ................................................................................................................ [ 39%] ................................................................................................................. [ 40%] ................................................................................................................ [ 41%] ................................................................s.............................................s. [ 42%] ..................................................................s.........................s................... [ 43%] ................................................................................................................ [ 44%] ................................................................................................................ [ 46%] ................................................................................................................. [ 47%] ..........................................s.............................................................x....... [ 48%] ....x........................................................................................................... [ 49%] ................................................................................................................ [ 50%] .....s...............................s...s...................................................................... [ 51%] ................................................................................................................ [ 52%] ............................s..................................................................................s [ 53%] ................s............................................................................................... [ 54%] ................................s........s...................................s.................................. [ 55%] ...........................s........s..........ss..................x............................................ [ 56%] .x.....................x....................................................s................................... [ 57%] .......................................s...................................................s.................... [ 58%] ...........s.........................................s.ss.............................s...s............s........ [ 59%] ................................................................s......................................ss.ss.ss. [ 61%] .......s..................................s..........s.......s...s..........................s......s......ss.... [ 62%] .............F....s..Fs........s.ss..............Fss......ss...s..s............................................. [ 63%] ........s............................s...ss.ss........s...s..........ss.....ssss.s..........ss.................. [ 64%] .sss.ssss.s.sss..s.sssssssss.sssss.sss.sss.............................................s.s......ss.....s.ss..... [ 65%] .........................ssss...............sss..........................................s........sss.sssssss... [ 66%] ..................sssss.s.s.ssss.........s....................................................s.................. [ 67%] .......................s.sssssssssssssss.sssss.ssssssssssssssss.ssssssssss.ssssssssssssssssss................... [ 68%] ....................s.s.s.sss......sss.......s...s...........s..............................s....ss..sss.s...... [ 69%] ......ss.s.s..ssssss.......s........................s...s...s......................s............................ [ 70%] ..................................ss.ss.ss.sss.................................................................. [ 71%] .........s.s.................................................................................................... [ 72%] .......................s...........................s..........s.........s.....ss...................ss........... [ 73%] .........ss.ssss....s.sss........ss.s.ss.....s......s........s.........sssssssss..s...s.s.s..s.....s..ss.s....s. [ 74%] .s.s...s.s...s...s.s.s...............ss............s............................................................ [ 75%] .......................sss..ss....s.................x........................................................... [ 77%] ................................................................................................................. [ 78%] ...............................................................................................sss............... [ 79%] ......s......................................................................................................... [ 80%] ..............................x................................................................................. [ 81%] ................................................................................................................ [ 82%] ..............................................................................................................s. [ 83%] ................................................................................................................ [ 84%] .........................................................s...................s...s....s..ss...ss...s......ss...s [ 85%] .....s.s......s.............................ss..s..ss.s..s.s...s..s.s................s...........s..........s... [ 86%] ................................s..........sss.................................................................. [ 87%] ..........................................................................................s..................... [ 88%] ................................................................................................................ [ 89%] ................................................s............................................................... [ 90%] ................................................................................................................ [ 92%] ................................................................................................................ [ 93%] ..............................................s................................................................. [ 94%] .....................................F...................F.....................F.............................F.. [ 95%] ......F......................................................................................................... [ 96%] ...........................F....................F..F.............................................s.FF..F.s...s.. [ 97%] .........................s......................F.......................ssssssss.............s.........x........ [ 98%] ...........................................................x..................................F................. [ 99%] .................................F..................... [100%] ====================================================== FAILURES ======================================================= ____________________________________________ testNamedTupleAdditionalArgs _____________________________________________ [gw6] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\test-data\unit\check-namedtuple.test:137: c:\Repos\mypy\mypy\test\testcheck.py:150: in run_case self.run_case_once(testcase) c:\Repos\mypy\mypy\test\testcheck.py:238: in run_case_once assert_string_arrays_equal(output, a, msg.format(testcase.file, testcase.line)) E AssertionError: Unexpected type checker output (C:\Repos\mypy\test-data\unit\check-namedtuple.test, line 137) ------------------------------------------------ Captured stderr call ------------------------------------------------- Expected: main:5: error: Argument "rename" to "namedtuple" has incompatible type "str... main:6: error: Unexpected keyword argument "unrecognized_arg" for "namedtup... C:/Repos/mypy/test-data/unit/lib-stub/collections.pyi:3: note: "namedtuple" defined here (diff) main:7: error: Too many positional arguments for "namedtuple" Actual: main:5: error: Argument "rename" to "namedtuple" has incompatible type "str... main:6: error: Unexpected keyword argument "unrecognized_arg" for "namedtup... c:/Repos/mypy/test-data/unit/lib-stub/collections.pyi:3: note: "namedtuple" defined here (diff) main:7: error: Too many positional arguments for "namedtuple" Alignment of first line difference: E: C:/Repos/mypy/test-data/unit/lib-stub/collections.pyi:3: note: "namedtup... A: c:/Repos/mypy/test-data/unit/lib-stub/collections.pyi:3: note: "namedtup... ^ ________________________________ testImportBringsAnotherFileWithBlockingError1_cached _________________________________ [gw6] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\test-data\unit\fine-grained-blockers.test:400: c:\Repos\mypy\venv\lib\site-packages\pluggy\_hooks.py:265: in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\pluggy\_manager.py:80: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:174: in pytest_runtest_call raise e c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:166: in pytest_runtest_call item.runtest() c:\Repos\mypy\mypy\test\data.py:270: in runtest suite.run_case(self) c:\Repos\mypy\mypy\test\testfinegrained.py:131: in run_case assert_string_arrays_equal( E AssertionError: Invalid output (C:\Repos\mypy\test-data\unit\fine-grained-blockers.test, line 400) ------------------------------------------------ Captured stderr call ------------------------------------------------- Expected: == C:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax (diff) == a.py:1: error: "int" not callable Actual: == c:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax (diff) == a.py:1: error: "int" not callable Alignment of first line difference: E: C:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid synt... A: c:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid synt... ^ _________________________ testImportBringsAnotherFileWithSemanticAnalysisBlockingError_cached _________________________ [gw6] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\test-data\unit\fine-grained-blockers.test:420: c:\Repos\mypy\venv\lib\site-packages\pluggy\_hooks.py:265: in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\pluggy\_manager.py:80: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:174: in pytest_runtest_call raise e c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:166: in pytest_runtest_call item.runtest() c:\Repos\mypy\mypy\test\data.py:270: in runtest suite.run_case(self) c:\Repos\mypy\mypy\test\testfinegrained.py:131: in run_case assert_string_arrays_equal( E AssertionError: Invalid output (C:\Repos\mypy\test-data\unit\fine-grained-blockers.test, line 420) ------------------------------------------------ Captured stderr call ------------------------------------------------- Expected: == C:/Repos/mypy/test-data/unit/lib-stub/blocker2.pyi:2: error: "continue" outside loop (diff) == a.py:1: error: "int" not callable Actual: == c:/Repos/mypy/test-data/unit/lib-stub/blocker2.pyi:2: error: "continue" outside loop (diff) == a.py:1: error: "int" not callable Alignment of first line difference: E: C:/Repos/mypy/test-data/unit/lib-stub/blocker2.pyi:2: error: "continue" ... A: c:/Repos/mypy/test-data/unit/lib-stub/blocker2.pyi:2: error: "continue" ... ^ ___________________________ testFixingBlockingErrorBringsInAnotherModuleWithBlocker_cached ____________________________ [gw6] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\test-data\unit\fine-grained-blockers.test:474: c:\Repos\mypy\venv\lib\site-packages\pluggy\_hooks.py:265: in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\pluggy\_manager.py:80: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:174: in pytest_runtest_call raise e c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:166: in pytest_runtest_call item.runtest() c:\Repos\mypy\mypy\test\data.py:270: in runtest suite.run_case(self) c:\Repos\mypy\mypy\test\testfinegrained.py:131: in run_case assert_string_arrays_equal( E AssertionError: Invalid output (C:\Repos\mypy\test-data\unit\fine-grained-blockers.test, line 474) ------------------------------------------------ Captured stderr call ------------------------------------------------- Expected: == a.py:1: error: invalid syntax == C:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax (diff) == a.py:2: error: "int" not callable Actual: == a.py:1: error: invalid syntax == c:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax (diff) == a.py:2: error: "int" not callable Alignment of first line difference: E: C:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid synt... A: c:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid synt... ^ ____________________________________________________ testTryExcept ____________________________________________________ [gw6] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-exceptions.test:84: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-exceptions.test, line 84) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-8m58c7f0\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: == i == Traceback (most recent call last): File "driver.py", line 6, in (diff) i() File "native.py", line 44, in i r(0) File "native.py", line 15, in r [0][1] IndexError: list index out of range == k == Traceback (most recent call last): File "native.py", line 59, in k r(1) File "native.py", line 17, in r raise Exception('hi') Exception: hi During handling of the above exception, another exception occurred: Traceback (most recent call last): File "driver.py", line 12, in (diff) k() File "native.py", line 61, in k r(0) File "native.py", line 15, in r ... Actual: == i == Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-8m58c7f0\tmp\driver.py", line 6, in (diff) i() File "native.py", line 44, in i r(0) File "native.py", line 15, in r [0][1] IndexError: list index out of range == k == Traceback (most recent call last): File "native.py", line 59, in k r(1) File "native.py", line 17, in r raise Exception('hi') Exception: hi During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-8m58c7f0\tmp\driver.py", line 12, in (diff) k() File "native.py", line 61, in k r(0) File "native.py", line 15, in r ... Alignment of first line difference: E: File "driver.py", line 6, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-8m58c7f0\tmp\driver.py... ^ ____________________________________________ testExceptionAtModuleTopLevel ____________________________________________ [gw6] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-exceptions.test:425: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-exceptions.test, line 425) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-e3nmocqr\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 3, in (diff) import native File "native.py", line 6, in f(y) TypeError: int object expected; got str Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-e3nmocqr\tmp\driver.py", line 3, in (diff) import native File "native.py", line 6, in f(y) TypeError: int object expected; got str Alignment of first line difference: E: File "driver.py", line 3, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-e3nmocqr\tmp\driver.py... ^ ___________________________________________________ testForIterable ___________________________________________________ [gw0] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-loops.test:278: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-loops.test, line 278) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-ybcyvgk5\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 16, in (diff) iterate_over_any(5) File "native.py", line 3, in iterate_over_any for element in a: TypeError: 'int' object is not iterable Traceback (most recent call last): File "driver.py", line 20, in (diff) iterate_over_iterable(broken_generator(5)) File "native.py", line 7, in iterate_over_iterable for element in iterable: File "driver.py", line 8, in broken_generator (diff) raise Exception('Exception Manually Raised') Exception: Exception Manually Raised Traceback (most recent call last): File "driver.py", line 24, in (diff) iterate_and_delete(d) File "native.py", line 11, in iterate_and_delete for key in d: RuntimeError: dictionary changed size during iteration ... Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-ybcyvgk5\tmp\driver.py", line 16, in (diff) iterate_over_any(5) File "native.py", line 3, in iterate_over_any for element in a: TypeError: 'int' object is not iterable Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-ybcyvgk5\tmp\driver.py", line 20, in (diff) iterate_over_iterable(broken_generator(5)) File "native.py", line 7, in iterate_over_iterable for element in iterable: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-ybcyvgk5\tmp\driver.py", line 8, in broken_generator (diff) raise Exception('Exception Manually Raised') Exception: Exception Manually Raised Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-ybcyvgk5\tmp\driver.py", line 24, in (diff) iterate_and_delete(d) File "native.py", line 11, in iterate_and_delete for key in d: RuntimeError: dictionary changed size during iteration ... Alignment of first line difference: E: File "driver.py", line 16, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-ybcyvgk5\tmp\driver.py... ^ _______________________________________________ testSubclassUninitAttr ________________________________________________ [gw3] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-classes.test:636: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-classes.test, line 636) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-ebtf038_\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 4, in (diff) A().x AttributeError: attribute 'x' of 'X' undefined Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-ebtf038_\tmp\driver.py", line 4, in (diff) A().x AttributeError: attribute 'x' of 'X' undefined Alignment of first line difference: E: File "driver.py", line 4, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-ebtf038_\tmp\driver.py... ^ ____________________________________________________ testException ____________________________________________________ [gw0] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-exceptions.test:3: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-exceptions.test, line 3) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-t65n9c4c\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 4, in (diff) f([]) File "native.py", line 3, in f g(x) File "native.py", line 6, in g x[5] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "driver.py", line 8, in (diff) r1() File "native.py", line 10, in r1 q1() File "native.py", line 13, in q1 raise Exception("test") Exception: test Traceback (most recent call last): File "driver.py", line 12, in (diff) r2() File "native.py", line 16, in r2 q2() File "native.py", line 19, in q2 raise Exception Exception Traceback (most recent call last): File "driver.py", line 16, in (diff) hey() File "native.py", line 26, in hey A() File "native.py", line 23, in __init__ ... Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-t65n9c4c\tmp\driver.py", line 4, in (diff) f([]) File "native.py", line 3, in f g(x) File "native.py", line 6, in g x[5] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-t65n9c4c\tmp\driver.py", line 8, in (diff) r1() File "native.py", line 10, in r1 q1() File "native.py", line 13, in q1 raise Exception("test") Exception: test Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-t65n9c4c\tmp\driver.py", line 12, in (diff) r2() File "native.py", line 16, in r2 q2() File "native.py", line 19, in q2 raise Exception Exception Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-t65n9c4c\tmp\driver.py", line 16, in (diff) hey() File "native.py", line 26, in hey A() File "native.py", line 23, in __init__ ... Alignment of first line difference: E: File "driver.py", line 4, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-t65n9c4c\tmp\driver.py... ^ ___________________________________________________ testYieldThrow ____________________________________________________ [gw7] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-generators.test:248: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-generators.test, line 248) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-ckfu2j0x\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: ... File "native.py", line 9, in generator yield 2 File "native.py", line 8, in generator yield 1 File "driver.py", line 31, in (diff) raise Exception File "native.py", line 10, in generator yield 3 File "native.py", line 30, in wrapper ... Actual: ... File "native.py", line 9, in generator yield 2 File "native.py", line 8, in generator yield 1 File "C:\Users\Dev\AppData\Local\Temp\mypy-test-ckfu2j0x\tmp\driver.py", line 31, in (diff) raise Exception File "native.py", line 10, in generator yield 3 File "native.py", line 30, in wrapper ... Alignment of first line difference: E: File "driver.py", line 31, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-ckfu2j0x\tmp\driver.py... ^ ____________________________________________________ testProperty _____________________________________________________ [gw6] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-classes.test:1604: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-classes.test, line 1604) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-oofb5t5b\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 5, in (diff) print (x.rankine) File "native.py", line 16, in rankine raise NotImplementedError NotImplementedError ... Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-oofb5t5b\tmp\driver.py", line 5, in (diff) print (x.rankine) File "native.py", line 16, in rankine raise NotImplementedError NotImplementedError ... Alignment of first line difference: E: File "driver.py", line 5, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-oofb5t5b\tmp\driver.py... ^ ______________________________________________ testMultiModuleTraceback _______________________________________________ [gw7] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-multimodule.test:251: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-multimodule.test, line 251) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building '3ef2a66b8671abc76f6e__mypyc' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native_3ef2a66b8671abc76f6e.c /Fobuild\temp.win-amd64-3.10\Release\build\__native_3ef2a66b8671abc76f6e.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native_3ef2a66b8671abc76f6e.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-3dbbdvxp\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_3ef2a66b8671abc76f6e__mypyc build\temp.win-amd64-3.10\Release\build\__native_3ef2a66b8671abc76f6e.obj /OUT:build\lib.win-amd64-3.10\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.exp Generating code Finished generating code building 'native' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\native.c /Fobuild\temp.win-amd64-3.10\Release\build\native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 native.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code building 'other' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\other.c /Fobuild\temp.win-amd64-3.10\Release\build\other.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 other.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_other build\temp.win-amd64-3.10\Release\build\other.obj /OUT:build\lib.win-amd64-3.10\other.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\other.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 6, in (diff) other.fail2() File "other.py", line 3, in fail2 x[2] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "driver.py", line 12, in (diff) native.fail() File "native.py", line 4, in fail fail2() File "other.py", line 3, in fail2 ... Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-3dbbdvxp\tmp\driver.py", line 6, in (diff) other.fail2() File "other.py", line 3, in fail2 x[2] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-3dbbdvxp\tmp\driver.py", line 12, in (diff) native.fail() File "native.py", line 4, in fail fail2() File "other.py", line 3, in fail2 ... Alignment of first line difference: E: File "driver.py", line 6, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-3dbbdvxp\tmp\driver.py... ^ ____________________________________ testImportBringsAnotherFileWithBlockingError1 ____________________________________ [gw1] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\test-data\unit\fine-grained-blockers.test:400: c:\Repos\mypy\mypy\test\testfinegrained.py:131: in run_case assert_string_arrays_equal( E AssertionError: Invalid output (C:\Repos\mypy\test-data\unit\fine-grained-blockers.test, line 400) ------------------------------------------------ Captured stderr call ------------------------------------------------- Expected: == C:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax (diff) == a.py:1: error: "int" not callable Actual: == c:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax (diff) == a.py:1: error: "int" not callable Alignment of first line difference: E: C:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid synt... A: c:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid synt... ^ ____________________________ testImportBringsAnotherFileWithSemanticAnalysisBlockingError _____________________________ [gw1] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\test-data\unit\fine-grained-blockers.test:420: c:\Repos\mypy\mypy\test\testfinegrained.py:131: in run_case assert_string_arrays_equal( E AssertionError: Invalid output (C:\Repos\mypy\test-data\unit\fine-grained-blockers.test, line 420) ------------------------------------------------ Captured stderr call ------------------------------------------------- Expected: == C:/Repos/mypy/test-data/unit/lib-stub/blocker2.pyi:2: error: "continue" outside loop (diff) == a.py:1: error: "int" not callable Actual: == c:/Repos/mypy/test-data/unit/lib-stub/blocker2.pyi:2: error: "continue" outside loop (diff) == a.py:1: error: "int" not callable Alignment of first line difference: E: C:/Repos/mypy/test-data/unit/lib-stub/blocker2.pyi:2: error: "continue" ... A: c:/Repos/mypy/test-data/unit/lib-stub/blocker2.pyi:2: error: "continue" ... ^ _______________________________ testFixingBlockingErrorBringsInAnotherModuleWithBlocker _______________________________ [gw1] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\test-data\unit\fine-grained-blockers.test:474: c:\Repos\mypy\mypy\test\testfinegrained.py:131: in run_case assert_string_arrays_equal( E AssertionError: Invalid output (C:\Repos\mypy\test-data\unit\fine-grained-blockers.test, line 474) ------------------------------------------------ Captured stderr call ------------------------------------------------- Expected: == a.py:1: error: invalid syntax == C:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax (diff) == a.py:2: error: "int" not callable Actual: == a.py:1: error: invalid syntax == c:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax (diff) == a.py:2: error: "int" not callable Alignment of first line difference: E: C:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid synt... A: c:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid synt... ^ _____________________________________ testAddFileWhichImportsLibModuleWithErrors ______________________________________ [gw1] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\test-data\unit\fine-grained-modules.test:754: c:\Repos\mypy\mypy\test\testfinegrained.py:131: in run_case assert_string_arrays_equal( E AssertionError: Invalid output (C:\Repos\mypy\test-data\unit\fine-grained-modules.test, line 754) ------------------------------------------------ Captured stderr call ------------------------------------------------- Expected: main:2: error: Cannot find implementation or library stub for module named ... main:2: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#m... == a.py:3: error: Name "z" is not defined C:/Repos/mypy/test-data/unit/lib-stub/broken.pyi:2: error: Name "y" is not defined (diff) Actual: main:2: error: Cannot find implementation or library stub for module named ... main:2: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#m... == a.py:3: error: Name "z" is not defined c:/Repos/mypy/test-data/unit/lib-stub/broken.pyi:2: error: Name "y" is not defined (diff) Alignment of first line difference: E: C:/Repos/mypy/test-data/unit/lib-stub/broken.pyi:2: error: Name "y" is n... A: c:/Repos/mypy/test-data/unit/lib-stub/broken.pyi:2: error: Name "y" is n... ^ ___________________________________________ testMultiModuleTraceback_multi ____________________________________________ [gw0] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-multimodule.test:251: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-multimodule.test, line 251) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building '3ef2a66b8671abc76f6e__mypyc' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native_3ef2a66b8671abc76f6e.c /Fobuild\temp.win-amd64-3.10\Release\build\__native_3ef2a66b8671abc76f6e.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 __native_3ef2a66b8671abc76f6e.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native_native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native_native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 __native_native.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native_other.c /Fobuild\temp.win-amd64-3.10\Release\build\__native_other.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 __native_other.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\bytes_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\bytes_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 bytes_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\dict_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\dict_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 dict_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\exc_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\exc_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 exc_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\generic_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\generic_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 generic_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\getargs.c /Fobuild\temp.win-amd64-3.10\Release\build\getargs.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 getargs.c build\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\getargsfast.c /Fobuild\temp.win-amd64-3.10\Release\build\getargsfast.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 getargsfast.c build\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\init.c /Fobuild\temp.win-amd64-3.10\Release\build\init.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 init.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\int_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\int_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 int_ops.c build\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data build\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\list_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\list_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 list_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\misc_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\misc_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 misc_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\set_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\set_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 set_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\str_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\str_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 str_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\tuple_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\tuple_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 tuple_ops.c creating C:\Users\Dev\AppData\Local\Temp\mypy-test-7uzg03ih\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_3ef2a66b8671abc76f6e__mypyc build\temp.win-amd64-3.10\Release\build\__native_3ef2a66b8671abc76f6e.obj build\temp.win-amd64-3.10\Release\build\__native_native.obj build\temp.win-amd64-3.10\Release\build\__native_other.obj build\temp.win-amd64-3.10\Release\build\bytes_ops.obj build\temp.win-amd64-3.10\Release\build\dict_ops.obj build\temp.win-amd64-3.10\Release\build\exc_ops.obj build\temp.win-amd64-3.10\Release\build\generic_ops.obj build\temp.win-amd64-3.10\Release\build\getargs.obj build\temp.win-amd64-3.10\Release\build\getargsfast.obj build\temp.win-amd64-3.10\Release\build\init.obj build\temp.win-amd64-3.10\Release\build\int_ops.obj build\temp.win-amd64-3.10\Release\build\list_ops.obj build\temp.win-amd64-3.10\Release\build\misc_ops.obj build\temp.win-amd64-3.10\Release\build\set_ops.obj build\temp.win-amd64-3.10\Release\build\str_ops.obj build\temp.win-amd64-3.10\Release\build\tuple_ops.obj /OUT:build\lib.win-amd64-3.10\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.exp LINK : /LTCG specified but no code generation required; remove /LTCG from the link command line to improve linker performance building 'native' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\native.c /Fobuild\temp.win-amd64-3.10\Release\build\native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 native.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp LINK : /LTCG specified but no code generation required; remove /LTCG from the link command line to improve linker performance building 'other' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\other.c /Fobuild\temp.win-amd64-3.10\Release\build\other.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 other.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_other build\temp.win-amd64-3.10\Release\build\other.obj /OUT:build\lib.win-amd64-3.10\other.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.exp LINK : /LTCG specified but no code generation required; remove /LTCG from the link command line to improve linker performance copying build\lib.win-amd64-3.10\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\other.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' Expected: Traceback (most recent call last): File "driver.py", line 6, in (diff) other.fail2() File "other.py", line 3, in fail2 x[2] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "driver.py", line 12, in (diff) native.fail() File "native.py", line 4, in fail fail2() File "other.py", line 3, in fail2 ... Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-7uzg03ih\tmp\driver.py", line 6, in (diff) other.fail2() File "other.py", line 3, in fail2 x[2] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-7uzg03ih\tmp\driver.py", line 12, in (diff) native.fail() File "native.py", line 4, in fail fail2() File "other.py", line 3, in fail2 ... Alignment of first line difference: E: File "driver.py", line 6, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-7uzg03ih\tmp\driver.py... ^ __________________________________________ testMultiModuleTraceback_separate __________________________________________ [gw0] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-multimodule.test:251: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-multimodule.test, line 251) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native__mypyc' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native_native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native_native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native_native.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-v6gpc9cn\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native__mypyc build\temp.win-amd64-3.10\Release\build\__native_native.obj /OUT:build\lib.win-amd64-3.10\native__mypyc.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native__mypyc.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native__mypyc.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native__mypyc.cp310-win_amd64.exp Generating code Finished generating code building 'native' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\native.c /Fobuild\temp.win-amd64-3.10\Release\build\native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 native.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code building 'other__mypyc' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native_other.c /Fobuild\temp.win-amd64-3.10\Release\build\__native_other.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native_other.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_other__mypyc build\temp.win-amd64-3.10\Release\build\__native_other.obj /OUT:build\lib.win-amd64-3.10\other__mypyc.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\other__mypyc.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\other__mypyc.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\other__mypyc.cp310-win_amd64.exp Generating code Finished generating code building 'other' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\other.c /Fobuild\temp.win-amd64-3.10\Release\build\other.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 other.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_other build\temp.win-amd64-3.10\Release\build\other.obj /OUT:build\lib.win-amd64-3.10\other.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native__mypyc.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\other__mypyc.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\other.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 6, in (diff) other.fail2() File "other.py", line 3, in fail2 x[2] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "driver.py", line 12, in (diff) native.fail() File "native.py", line 4, in fail fail2() File "other.py", line 3, in fail2 ... Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-v6gpc9cn\tmp\driver.py", line 6, in (diff) other.fail2() File "other.py", line 3, in fail2 x[2] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-v6gpc9cn\tmp\driver.py", line 12, in (diff) native.fail() File "native.py", line 4, in fail fail2() File "other.py", line 3, in fail2 ... Alignment of first line difference: E: File "driver.py", line 6, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-v6gpc9cn\tmp\driver.py... ^ =============================================== short test summary info =============================================== FAILED mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAdditionalArgs FAILED mypy/test/testfinegrainedcache.py::FineGrainedCacheSuite::fine-grained-blockers.test::testImportBringsAnotherFileWithBlockingError1_cached FAILED mypy/test/testfinegrainedcache.py::FineGrainedCacheSuite::fine-grained-blockers.test::testImportBringsAnotherFileWithSemanticAnalysisBlockingError_cached FAILED mypy/test/testfinegrainedcache.py::FineGrainedCacheSuite::fine-grained-blockers.test::testFixingBlockingErrorBringsInAnotherModuleWithBlocker_cached FAILED mypyc/test/test_run.py::TestRun::run-exceptions.test::testTryExcept FAILED mypyc/test/test_run.py::TestRun::run-exceptions.test::testExceptionAtModuleTopLevel FAILED mypyc/test/test_run.py::TestRun::run-loops.test::testForIterable FAILED mypyc/test/test_run.py::TestRun::run-classes.test::testSubclassUninitAttr FAILED mypyc/test/test_run.py::TestRun::run-exceptions.test::testException FAILED mypyc/test/test_run.py::TestRun::run-generators.test::testYieldThrow FAILED mypyc/test/test_run.py::TestRun::run-classes.test::testProperty FAILED mypyc/test/test_run.py::TestRun::run-multimodule.test::testMultiModuleTraceback FAILED mypy/test/testfinegrained.py::FineGrainedSuite::fine-grained-blockers.test::testImportBringsAnotherFileWithBlockingError1 FAILED mypy/test/testfinegrained.py::FineGrainedSuite::fine-grained-blockers.test::testImportBringsAnotherFileWithSemanticAnalysisBlockingError FAILED mypy/test/testfinegrained.py::FineGrainedSuite::fine-grained-blockers.test::testFixingBlockingErrorBringsInAnotherModuleWithBlocker FAILED mypy/test/testfinegrained.py::FineGrainedSuite::fine-grained-modules.test::testAddFileWhichImportsLibModuleWithErrors FAILED mypyc/test/test_run.py::TestRunMultiFile::run-multimodule.test::testMultiModuleTraceback_multi FAILED mypyc/test/test_run.py::TestRunSeparate::run-multimodule.test::testMultiModuleTraceback_separate ======================== 18 failed, 10081 passed, 380 skipped, 10 xfailed in 441.05s (0:07:21) ======================== (venv) c:\Repos\mypy> ```
AlexWaygood commented 2 years ago

Huh, I'm intrigued about why your file paths start with a lowercase c rather than an uppercase C :)

It looks like that's the cause for a lot of the errors.

edreamleo commented 2 years ago

@pranavrajpal Many of the failing tests contain lines like:

  E:   File "driver.py", line 6, in <module>...
  A:   File "C:\Users\Dev\AppData\Local\Temp\mypy-test-7uzg03ih\tmp\driver.py...

I'm wondering whether the tests should be generalized. Or perhaps my installation is missing an environment var. In that case, venv would seem not to be doing a complete job. What do you think?

edreamleo commented 2 years ago

@AlexWaygood Good catch. This was an issue in another context. Oh yes, now I remember: pylint issue #6476.

edreamleo commented 2 years ago

@AlexWaygood Linux-oriented devs sometimes don't remember how insensitive Windows is to file case.

edreamleo commented 2 years ago

@AlexWaygood Not that remembering makes dealing with filenames any easier!

edreamleo commented 2 years ago

@AlexWaygood I think I see what is going on.

Outside of mypy

C:\Repos\leo-editor>C:\Python\Python3.10\python.exe
Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> for z in sys.path: print(z)
...

C:\Python\Python3.10\python310.zip
C:\Python\Python3.10\DLLs
C:\Python\Python3.10\lib
C:\Python\Python3.10
C:\Python\Python3.10\lib\site-packages
c:\repos\ekr-pylint
C:\Python\Python3.10\lib\site-packages\win32
C:\Python\Python3.10\lib\site-packages\win32\lib
C:\Python\Python3.10\lib\site-packages\Pythonwin
>>> ^Z

All looks good, except for ekr-pylint, a clone of the pylint repo.

Sheesh. Now I remember: C:\Python\Python3.10\Lib\site-packages\easy-install.pth contains:

c:\repos\ekr-pylint

So pylint's unit tests will be hosed if they depend on the case of "c:". This is, I'm pretty sure, a pylint install problem, though naturally the pylint devs weren't aware of easy-install.pth!

Inside mypy

c:\Repos\mypy>activate
(venv) c:\Repos\mypy>python
Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> for z in sys.path: print(z)
...

C:\Python\Python3.10\python310.zip
C:\Python\Python3.10\DLLs
C:\Python\Python3.10\lib
C:\Python\Python3.10
c:\Repos\mypy\venv
c:\Repos\mypy\venv\lib\site-packages
c:\repos\mypy
>>>

Oops.

And lookie here: C:\Repos\mypy\venv\Lib\site-packages\easy-install.pth contains:

c:\repos\mypy

So once again the culprit is an easy-install.pth file that none of us knows about :-)

BTW, the free version of FileLocator Pro is the only way to search on Windows. It's about 100 times faster than searching with the default Windows tools.

AlexWaygood commented 2 years ago

So once again the culprit is an easy-install.pth file that none of us knows about :-)

Okay, but I'm confused: do you think the fix need to happen on mypy's end, your end, or whoever/whatever created that .pth file?

edreamleo commented 2 years ago

@AlexWaygood I'm confused too. I'm sure that I didn't do anything to the .pth file, but perhaps changing that file (on my end) is a temporary workaround.

Imo, venv is not likely the culprit because the pylint problems did not (apparently) depend on venv. So my guess is that there is a problem with setuptools, or whatever pip depends on.

In any case, making mypy unit tests robust against the case of filenames (Windows only) might be something worth considering. But such changes would likely be ugly.

edreamleo commented 2 years ago

@AlexWaygood On second thought, it's likely that some part of the python standard library is creating the .pth file. So one could argue that the contents of .pth files simply can not change, because the standard library can't change.

This question might be worth discussing with Guido or other python guru, but for now I'm afraid that mypy (and pylint) might be stuck with .pth files as they are.

edreamleo commented 2 years ago

@AlexWaygood However, I'm going to change the case of my local .pth file and see what happens. I'll let you know.

JelleZijlstra commented 2 years ago

@AlexWaygood On second thought, it's likely that some part of the python standard library is creating the .pth file. So one could argue that the contents of .pth files simply can not change, because the standard library can't change.

I'm fairly sure the standard library wouldn't create an easy-install.pth file. Most likely it's setuptools.

edreamleo commented 2 years ago

Not much joy: 18 failed, 10081 passed, 380 skipped, 10 xfailed

I changed mypy\venv\site-packages\easy-install.py as follows:

### EKR: Change case from c: to C:
### c:\repos\mypy
C:\repos\mypy

The results were different, but still the tests fail. But wait a minute. There's probably not a big reason to show the failures, because sys.path still contains lower-case drive letters:

(venv) c:\Repos\mypy>python
Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> for z in sys.path: print(z)
...

C:\Python\Python3.10\python310.zip
C:\Python\Python3.10\DLLs
C:\Python\Python3.10\lib
C:\Python\Python3.10
c:\Repos\mypy\venv
c:\Repos\mypy\venv\lib\site-packages
C:\repos\mypy
>>>

Ouch!

edreamleo commented 2 years ago

@AlexWaygood Oh, what the heck. Here are the new failures. Note --cache-clear.

```console (venv) c:\Repos\mypy>pytest --cache-clear ================================================= test session starts ================================================= platform win32 -- Python 3.10.4, pytest-7.1.2, pluggy-1.0.0 rootdir: c:\Repos\mypy, configfile: pytest.ini, testpaths: mypy/test, mypyc/test plugins: cov-2.12.1, forked-1.4.0, xdist-2.5.0 gw0 [10489] / gw1 [10489] / gw2 [10489] / gw3 [10489] / gw4 [10489] / gw5 [10489] / gw6 [10489] / gw7 [10489] .......................................s......................................................................x.. [ 1%] ................................................................................................................ [ 2%] ................................................................................................................ [ 3%] ................................................................................................................... [ 4%] ................................................................................................................ [ 5%] ................................................................................................................ [ 6%] ................................................................................................................ [ 7%] ...................................................s...........................s................................. [ 8%] .............................................................s.................................................. [ 9%] ..........................................s...................................................................... [ 10%] .................................................................................................................. [ 11%] ................................................................................................................ [ 12%] ................................................................................................................. [ 13%] ...................................................................s............................................ [ 15%] .................................................................................................................. [ 16%] ................................................................................................................ [ 17%] .................................................................................................................. [ 18%] ................................................................................................................ [ 19%] ................................................................................................................ [ 20%] ...........................................................................s.................................... [ 21%] ................................................................................................................ [ 22%] ..............................................................F.................................................. [ 23%] ................................................................................................................ [ 24%] ................................................................................................................. [ 25%] .................................................................s.s............................................ [ 26%] ...........s.................................................................................................... [ 27%] ................................................................................................................. [ 28%] ................................................................................................................ [ 30%] ................................................................................................................. [ 31%] ................................................................................................................ [ 32%] ................................................................................................................ [ 33%] ................................................................................................................. [ 34%] .....................................s.......................................................................... [ 35%] ................................................................................................................ [ 36%] ............s................................................................................................... [ 37%] ................................................................................................................ [ 38%] ................................................................................................................... [ 39%] ................................................................................................................. [ 40%] .................................................................s.............................................. [ 41%] ...................................................s............................................................. [ 42%] ................................................s..............................................s................ [ 43%] ................................................................................................................ [ 45%] ................................................................................................................. [ 46%] ................................................................................................................ [ 47%] .........................................................................s...................................... [ 48%] .....x..........x............................................................................................... [ 49%] ................................................................................................................ [ 50%] ..............................s....................s...s........................................................ [ 51%] ................................................................................................................ [ 52%] ......................................s......................................................................... [ 53%] ................................................s............................................................... [ 54%] ..............s.....................................................s........................................... [ 55%] s......................................................................s.......x.....s...........s......ss...... [ 56%] ......................................x......................................................................... [ 57%] ...........x.................................................................................................... [ 58%] ........................s..........................s...s...........s...sss......................s..sss.s.ss...s. [ 60%] ..s....s.......................s...s.sssss....ssssssssss.s...............................s.s.......s.........s.. [ 61%] ...........................ss..................................................................s................ [ 62%] .........s............................................sss.........s.............s.s....s.......................s [ 63%] ................s.................ss..s...........s...s..........s..........s....s.ss...........s............... [ 64%] ...s.s..................s...................s.....s......s..s...ss.s..sss........s................sss..ss.sss... [ 65%] s............................................................................................................... [ 66%] ................................................................................................................ [ 67%] ....................................s.......s.......s....s....s............sssssssssss..sssssssssssssssssssssss.s [ 68%] .s.ss.ssssssssssss.ss.sssss.ssssssssssssssss.s..........s......s.s..........................s............ss.s.s... [ 69%] .......ss.......sss.Fss..ss.ssssssss.ssssssFs.sssss.s.sss...........Fss........ss.......................sss.s.s. [ 70%] ..........................s......s......................sss.ss......s.....................................s..... [ 71%] ...s..s.s..................................................................................ss..........s..s.s..s [ 72%] .ss..s..s.s.ss.ss.s...s.s...s................s.sss.........sss..............sssssss...............s.......s..... [ 73%] ....s........s....s......s..............ss.........s...s...ssss.ss....sss....s.ss.ss........s....s......s.ssssss [ 75%] sss.............................................................................................................. [ 76%] ................................................................................................................ [ 77%] ....x........................................................................................................... [ 78%] ................................................s.................................................x............. [ 79%] .......................................................................................sss...................... [ 80%] ................................................................................................................ [ 81%] ............................................................s................................................... [ 82%] ................................................................................................................ [ 83%] ................................................................................................................ [ 84%] ...................................s............................................................................ [ 85%] ......................................................s.......sss............................................... [ 86%] ....................................s............................................s.............................. [ 87%] ......................................................ss.ss.ss..ss..s.s..ss..ss.s.s.s.ss..ss.s.ss.s.s.s......... [ 88%] ................................................................................................................ [ 89%] .......s........................................................................................................ [ 91%] ................................................................................................................ [ 92%] ................................................................................................................ [ 93%] ............................................................s................................................F.. [ 94%] ...F....................F...............F...................................F................................... [ 95%] .F............................................F......................F.......................................... [ 96%] .............................................................................x.....x............................ [ 97%] ................F....................s.FF..F.s..s..............................s....................F........... [ 98%] ...........ssssssss.............s..................F............................................................ [ 99%] ............................................. [100%] ====================================================== FAILURES ======================================================= ____________________________________________ testNamedTupleAdditionalArgs _____________________________________________ [gw6] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\test-data\unit\check-namedtuple.test:137: c:\Repos\mypy\mypy\test\testcheck.py:150: in run_case self.run_case_once(testcase) c:\Repos\mypy\mypy\test\testcheck.py:238: in run_case_once assert_string_arrays_equal(output, a, msg.format(testcase.file, testcase.line)) E AssertionError: Unexpected type checker output (C:\Repos\mypy\test-data\unit\check-namedtuple.test, line 137) ------------------------------------------------ Captured stderr call ------------------------------------------------- Expected: main:5: error: Argument "rename" to "namedtuple" has incompatible type "str... main:6: error: Unexpected keyword argument "unrecognized_arg" for "namedtup... C:/Repos/mypy/test-data/unit/lib-stub/collections.pyi:3: note: "namedtuple" defined here (diff) main:7: error: Too many positional arguments for "namedtuple" Actual: main:5: error: Argument "rename" to "namedtuple" has incompatible type "str... main:6: error: Unexpected keyword argument "unrecognized_arg" for "namedtup... c:/Repos/mypy/test-data/unit/lib-stub/collections.pyi:3: note: "namedtuple" defined here (diff) main:7: error: Too many positional arguments for "namedtuple" Alignment of first line difference: E: C:/Repos/mypy/test-data/unit/lib-stub/collections.pyi:3: note: "namedtup... A: c:/Repos/mypy/test-data/unit/lib-stub/collections.pyi:3: note: "namedtup... ^ ________________________________ testImportBringsAnotherFileWithBlockingError1_cached _________________________________ [gw5] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\test-data\unit\fine-grained-blockers.test:400: c:\Repos\mypy\venv\lib\site-packages\pluggy\_hooks.py:265: in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\pluggy\_manager.py:80: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:174: in pytest_runtest_call raise e c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:166: in pytest_runtest_call item.runtest() c:\Repos\mypy\mypy\test\data.py:270: in runtest suite.run_case(self) c:\Repos\mypy\mypy\test\testfinegrained.py:131: in run_case assert_string_arrays_equal( E AssertionError: Invalid output (C:\Repos\mypy\test-data\unit\fine-grained-blockers.test, line 400) ------------------------------------------------ Captured stderr call ------------------------------------------------- Expected: == C:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax (diff) == a.py:1: error: "int" not callable Actual: == c:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax (diff) == a.py:1: error: "int" not callable Alignment of first line difference: E: C:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid synt... A: c:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid synt... ^ _________________________ testImportBringsAnotherFileWithSemanticAnalysisBlockingError_cached _________________________ [gw5] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\test-data\unit\fine-grained-blockers.test:420: c:\Repos\mypy\venv\lib\site-packages\pluggy\_hooks.py:265: in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\pluggy\_manager.py:80: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:174: in pytest_runtest_call raise e c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:166: in pytest_runtest_call item.runtest() c:\Repos\mypy\mypy\test\data.py:270: in runtest suite.run_case(self) c:\Repos\mypy\mypy\test\testfinegrained.py:131: in run_case assert_string_arrays_equal( E AssertionError: Invalid output (C:\Repos\mypy\test-data\unit\fine-grained-blockers.test, line 420) ------------------------------------------------ Captured stderr call ------------------------------------------------- Expected: == C:/Repos/mypy/test-data/unit/lib-stub/blocker2.pyi:2: error: "continue" outside loop (diff) == a.py:1: error: "int" not callable Actual: == c:/Repos/mypy/test-data/unit/lib-stub/blocker2.pyi:2: error: "continue" outside loop (diff) == a.py:1: error: "int" not callable Alignment of first line difference: E: C:/Repos/mypy/test-data/unit/lib-stub/blocker2.pyi:2: error: "continue" ... A: c:/Repos/mypy/test-data/unit/lib-stub/blocker2.pyi:2: error: "continue" ... ^ ___________________________ testFixingBlockingErrorBringsInAnotherModuleWithBlocker_cached ____________________________ [gw5] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\test-data\unit\fine-grained-blockers.test:474: c:\Repos\mypy\venv\lib\site-packages\pluggy\_hooks.py:265: in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\pluggy\_manager.py:80: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:174: in pytest_runtest_call raise e c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:166: in pytest_runtest_call item.runtest() c:\Repos\mypy\mypy\test\data.py:270: in runtest suite.run_case(self) c:\Repos\mypy\mypy\test\testfinegrained.py:131: in run_case assert_string_arrays_equal( E AssertionError: Invalid output (C:\Repos\mypy\test-data\unit\fine-grained-blockers.test, line 474) ------------------------------------------------ Captured stderr call ------------------------------------------------- Expected: == a.py:1: error: invalid syntax == C:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax (diff) == a.py:2: error: "int" not callable Actual: == a.py:1: error: invalid syntax == c:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax (diff) == a.py:2: error: "int" not callable Alignment of first line difference: E: C:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid synt... A: c:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid synt... ^ ____________________________________________________ testException ____________________________________________________ [gw0] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-exceptions.test:3: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-exceptions.test, line 3) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-sop736xy\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 4, in (diff) f([]) File "native.py", line 3, in f g(x) File "native.py", line 6, in g x[5] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "driver.py", line 8, in (diff) r1() File "native.py", line 10, in r1 q1() File "native.py", line 13, in q1 raise Exception("test") Exception: test Traceback (most recent call last): File "driver.py", line 12, in (diff) r2() File "native.py", line 16, in r2 q2() File "native.py", line 19, in q2 raise Exception Exception Traceback (most recent call last): File "driver.py", line 16, in (diff) hey() File "native.py", line 26, in hey A() File "native.py", line 23, in __init__ ... Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-sop736xy\tmp\driver.py", line 4, in (diff) f([]) File "native.py", line 3, in f g(x) File "native.py", line 6, in g x[5] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-sop736xy\tmp\driver.py", line 8, in (diff) r1() File "native.py", line 10, in r1 q1() File "native.py", line 13, in q1 raise Exception("test") Exception: test Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-sop736xy\tmp\driver.py", line 12, in (diff) r2() File "native.py", line 16, in r2 q2() File "native.py", line 19, in q2 raise Exception Exception Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-sop736xy\tmp\driver.py", line 16, in (diff) hey() File "native.py", line 26, in hey A() File "native.py", line 23, in __init__ ... Alignment of first line difference: E: File "driver.py", line 4, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-sop736xy\tmp\driver.py... ^ ____________________________________________________ testTryExcept ____________________________________________________ [gw0] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-exceptions.test:84: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-exceptions.test, line 84) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-y8t909hh\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: == i == Traceback (most recent call last): File "driver.py", line 6, in (diff) i() File "native.py", line 44, in i r(0) File "native.py", line 15, in r [0][1] IndexError: list index out of range == k == Traceback (most recent call last): File "native.py", line 59, in k r(1) File "native.py", line 17, in r raise Exception('hi') Exception: hi During handling of the above exception, another exception occurred: Traceback (most recent call last): File "driver.py", line 12, in (diff) k() File "native.py", line 61, in k r(0) File "native.py", line 15, in r ... Actual: == i == Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-y8t909hh\tmp\driver.py", line 6, in (diff) i() File "native.py", line 44, in i r(0) File "native.py", line 15, in r [0][1] IndexError: list index out of range == k == Traceback (most recent call last): File "native.py", line 59, in k r(1) File "native.py", line 17, in r raise Exception('hi') Exception: hi During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-y8t909hh\tmp\driver.py", line 12, in (diff) k() File "native.py", line 61, in k r(0) File "native.py", line 15, in r ... Alignment of first line difference: E: File "driver.py", line 6, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-y8t909hh\tmp\driver.py... ^ ____________________________________________ testExceptionAtModuleTopLevel ____________________________________________ [gw0] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-exceptions.test:425: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-exceptions.test, line 425) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-4w58mw7l\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 3, in (diff) import native File "native.py", line 6, in f(y) TypeError: int object expected; got str Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-4w58mw7l\tmp\driver.py", line 3, in (diff) import native File "native.py", line 6, in f(y) TypeError: int object expected; got str Alignment of first line difference: E: File "driver.py", line 3, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-4w58mw7l\tmp\driver.py... ^ ___________________________________________________ testForIterable ___________________________________________________ [gw2] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-loops.test:278: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-loops.test, line 278) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-0k5gyzvt\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 16, in (diff) iterate_over_any(5) File "native.py", line 3, in iterate_over_any for element in a: TypeError: 'int' object is not iterable Traceback (most recent call last): File "driver.py", line 20, in (diff) iterate_over_iterable(broken_generator(5)) File "native.py", line 7, in iterate_over_iterable for element in iterable: File "driver.py", line 8, in broken_generator (diff) raise Exception('Exception Manually Raised') Exception: Exception Manually Raised Traceback (most recent call last): File "driver.py", line 24, in (diff) iterate_and_delete(d) File "native.py", line 11, in iterate_and_delete for key in d: RuntimeError: dictionary changed size during iteration ... Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-0k5gyzvt\tmp\driver.py", line 16, in (diff) iterate_over_any(5) File "native.py", line 3, in iterate_over_any for element in a: TypeError: 'int' object is not iterable Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-0k5gyzvt\tmp\driver.py", line 20, in (diff) iterate_over_iterable(broken_generator(5)) File "native.py", line 7, in iterate_over_iterable for element in iterable: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-0k5gyzvt\tmp\driver.py", line 8, in broken_generator (diff) raise Exception('Exception Manually Raised') Exception: Exception Manually Raised Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-0k5gyzvt\tmp\driver.py", line 24, in (diff) iterate_and_delete(d) File "native.py", line 11, in iterate_and_delete for key in d: RuntimeError: dictionary changed size during iteration ... Alignment of first line difference: E: File "driver.py", line 16, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-0k5gyzvt\tmp\driver.py... ^ ____________________________________________________ testProperty _____________________________________________________ [gw5] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-classes.test:1604: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-classes.test, line 1604) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-__2zndw1\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 5, in (diff) print (x.rankine) File "native.py", line 16, in rankine raise NotImplementedError NotImplementedError ... Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-__2zndw1\tmp\driver.py", line 5, in (diff) print (x.rankine) File "native.py", line 16, in rankine raise NotImplementedError NotImplementedError ... Alignment of first line difference: E: File "driver.py", line 5, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-__2zndw1\tmp\driver.py... ^ _______________________________________________ testSubclassUninitAttr ________________________________________________ [gw4] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-classes.test:636: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-classes.test, line 636) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-t0vo1o5v\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 4, in (diff) A().x AttributeError: attribute 'x' of 'X' undefined Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-t0vo1o5v\tmp\driver.py", line 4, in (diff) A().x AttributeError: attribute 'x' of 'X' undefined Alignment of first line difference: E: File "driver.py", line 4, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-t0vo1o5v\tmp\driver.py... ^ ___________________________________________________ testYieldThrow ____________________________________________________ [gw5] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-generators.test:248: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-generators.test, line 248) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-e61lh1km\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: ... File "native.py", line 9, in generator yield 2 File "native.py", line 8, in generator yield 1 File "driver.py", line 31, in (diff) raise Exception File "native.py", line 10, in generator yield 3 File "native.py", line 30, in wrapper ... Actual: ... File "native.py", line 9, in generator yield 2 File "native.py", line 8, in generator yield 1 File "C:\Users\Dev\AppData\Local\Temp\mypy-test-e61lh1km\tmp\driver.py", line 31, in (diff) raise Exception File "native.py", line 10, in generator yield 3 File "native.py", line 30, in wrapper ... Alignment of first line difference: E: File "driver.py", line 31, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-e61lh1km\tmp\driver.py... ^ ______________________________________________ testMultiModuleTraceback _______________________________________________ [gw6] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-multimodule.test:251: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-multimodule.test, line 251) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building '3ef2a66b8671abc76f6e__mypyc' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native_3ef2a66b8671abc76f6e.c /Fobuild\temp.win-amd64-3.10\Release\build\__native_3ef2a66b8671abc76f6e.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native_3ef2a66b8671abc76f6e.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-npus3djj\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_3ef2a66b8671abc76f6e__mypyc build\temp.win-amd64-3.10\Release\build\__native_3ef2a66b8671abc76f6e.obj /OUT:build\lib.win-amd64-3.10\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.exp Generating code Finished generating code building 'native' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\native.c /Fobuild\temp.win-amd64-3.10\Release\build\native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 native.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code building 'other' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\other.c /Fobuild\temp.win-amd64-3.10\Release\build\other.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 other.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_other build\temp.win-amd64-3.10\Release\build\other.obj /OUT:build\lib.win-amd64-3.10\other.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\other.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 6, in (diff) other.fail2() File "other.py", line 3, in fail2 x[2] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "driver.py", line 12, in (diff) native.fail() File "native.py", line 4, in fail fail2() File "other.py", line 3, in fail2 ... Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-npus3djj\tmp\driver.py", line 6, in (diff) other.fail2() File "other.py", line 3, in fail2 x[2] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-npus3djj\tmp\driver.py", line 12, in (diff) native.fail() File "native.py", line 4, in fail fail2() File "other.py", line 3, in fail2 ... Alignment of first line difference: E: File "driver.py", line 6, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-npus3djj\tmp\driver.py... ^ ___________________________________________ testMultiModuleTraceback_multi ____________________________________________ [gw1] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-multimodule.test:251: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-multimodule.test, line 251) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building '3ef2a66b8671abc76f6e__mypyc' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native_3ef2a66b8671abc76f6e.c /Fobuild\temp.win-amd64-3.10\Release\build\__native_3ef2a66b8671abc76f6e.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 __native_3ef2a66b8671abc76f6e.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native_native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native_native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 __native_native.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native_other.c /Fobuild\temp.win-amd64-3.10\Release\build\__native_other.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 __native_other.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\bytes_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\bytes_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 bytes_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\dict_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\dict_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 dict_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\exc_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\exc_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 exc_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\generic_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\generic_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 generic_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\getargs.c /Fobuild\temp.win-amd64-3.10\Release\build\getargs.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 getargs.c build\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\getargsfast.c /Fobuild\temp.win-amd64-3.10\Release\build\getargsfast.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 getargsfast.c build\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\init.c /Fobuild\temp.win-amd64-3.10\Release\build\init.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 init.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\int_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\int_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 int_ops.c build\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data build\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\list_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\list_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 list_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\misc_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\misc_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 misc_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\set_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\set_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 set_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\str_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\str_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 str_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\tuple_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\tuple_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 tuple_ops.c creating C:\Users\Dev\AppData\Local\Temp\mypy-test-jwxu7ajo\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_3ef2a66b8671abc76f6e__mypyc build\temp.win-amd64-3.10\Release\build\__native_3ef2a66b8671abc76f6e.obj build\temp.win-amd64-3.10\Release\build\__native_native.obj build\temp.win-amd64-3.10\Release\build\__native_other.obj build\temp.win-amd64-3.10\Release\build\bytes_ops.obj build\temp.win-amd64-3.10\Release\build\dict_ops.obj build\temp.win-amd64-3.10\Release\build\exc_ops.obj build\temp.win-amd64-3.10\Release\build\generic_ops.obj build\temp.win-amd64-3.10\Release\build\getargs.obj build\temp.win-amd64-3.10\Release\build\getargsfast.obj build\temp.win-amd64-3.10\Release\build\init.obj build\temp.win-amd64-3.10\Release\build\int_ops.obj build\temp.win-amd64-3.10\Release\build\list_ops.obj build\temp.win-amd64-3.10\Release\build\misc_ops.obj build\temp.win-amd64-3.10\Release\build\set_ops.obj build\temp.win-amd64-3.10\Release\build\str_ops.obj build\temp.win-amd64-3.10\Release\build\tuple_ops.obj /OUT:build\lib.win-amd64-3.10\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.exp LINK : /LTCG specified but no code generation required; remove /LTCG from the link command line to improve linker performance building 'native' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\native.c /Fobuild\temp.win-amd64-3.10\Release\build\native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 native.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp LINK : /LTCG specified but no code generation required; remove /LTCG from the link command line to improve linker performance building 'other' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\other.c /Fobuild\temp.win-amd64-3.10\Release\build\other.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 other.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_other build\temp.win-amd64-3.10\Release\build\other.obj /OUT:build\lib.win-amd64-3.10\other.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.exp LINK : /LTCG specified but no code generation required; remove /LTCG from the link command line to improve linker performance copying build\lib.win-amd64-3.10\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\other.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' Expected: Traceback (most recent call last): File "driver.py", line 6, in (diff) other.fail2() File "other.py", line 3, in fail2 x[2] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "driver.py", line 12, in (diff) native.fail() File "native.py", line 4, in fail fail2() File "other.py", line 3, in fail2 ... Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-jwxu7ajo\tmp\driver.py", line 6, in (diff) other.fail2() File "other.py", line 3, in fail2 x[2] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-jwxu7ajo\tmp\driver.py", line 12, in (diff) native.fail() File "native.py", line 4, in fail fail2() File "other.py", line 3, in fail2 ... Alignment of first line difference: E: File "driver.py", line 6, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-jwxu7ajo\tmp\driver.py... ^ ____________________________________ testImportBringsAnotherFileWithBlockingError1 ____________________________________ [gw7] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\test-data\unit\fine-grained-blockers.test:400: c:\Repos\mypy\mypy\test\testfinegrained.py:131: in run_case assert_string_arrays_equal( E AssertionError: Invalid output (C:\Repos\mypy\test-data\unit\fine-grained-blockers.test, line 400) ------------------------------------------------ Captured stderr call ------------------------------------------------- Expected: == C:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax (diff) == a.py:1: error: "int" not callable Actual: == c:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax (diff) == a.py:1: error: "int" not callable Alignment of first line difference: E: C:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid synt... A: c:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid synt... ^ ____________________________ testImportBringsAnotherFileWithSemanticAnalysisBlockingError _____________________________ [gw7] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\test-data\unit\fine-grained-blockers.test:420: c:\Repos\mypy\mypy\test\testfinegrained.py:131: in run_case assert_string_arrays_equal( E AssertionError: Invalid output (C:\Repos\mypy\test-data\unit\fine-grained-blockers.test, line 420) ------------------------------------------------ Captured stderr call ------------------------------------------------- Expected: == C:/Repos/mypy/test-data/unit/lib-stub/blocker2.pyi:2: error: "continue" outside loop (diff) == a.py:1: error: "int" not callable Actual: == c:/Repos/mypy/test-data/unit/lib-stub/blocker2.pyi:2: error: "continue" outside loop (diff) == a.py:1: error: "int" not callable Alignment of first line difference: E: C:/Repos/mypy/test-data/unit/lib-stub/blocker2.pyi:2: error: "continue" ... A: c:/Repos/mypy/test-data/unit/lib-stub/blocker2.pyi:2: error: "continue" ... ^ _______________________________ testFixingBlockingErrorBringsInAnotherModuleWithBlocker _______________________________ [gw7] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\test-data\unit\fine-grained-blockers.test:474: c:\Repos\mypy\mypy\test\testfinegrained.py:131: in run_case assert_string_arrays_equal( E AssertionError: Invalid output (C:\Repos\mypy\test-data\unit\fine-grained-blockers.test, line 474) ------------------------------------------------ Captured stderr call ------------------------------------------------- Expected: == a.py:1: error: invalid syntax == C:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax (diff) == a.py:2: error: "int" not callable Actual: == a.py:1: error: invalid syntax == c:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax (diff) == a.py:2: error: "int" not callable Alignment of first line difference: E: C:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid synt... A: c:/Repos/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid synt... ^ _____________________________________ testAddFileWhichImportsLibModuleWithErrors ______________________________________ [gw7] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\test-data\unit\fine-grained-modules.test:754: c:\Repos\mypy\mypy\test\testfinegrained.py:131: in run_case assert_string_arrays_equal( E AssertionError: Invalid output (C:\Repos\mypy\test-data\unit\fine-grained-modules.test, line 754) ------------------------------------------------ Captured stderr call ------------------------------------------------- Expected: main:2: error: Cannot find implementation or library stub for module named ... main:2: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#m... == a.py:3: error: Name "z" is not defined C:/Repos/mypy/test-data/unit/lib-stub/broken.pyi:2: error: Name "y" is not defined (diff) Actual: main:2: error: Cannot find implementation or library stub for module named ... main:2: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#m... == a.py:3: error: Name "z" is not defined c:/Repos/mypy/test-data/unit/lib-stub/broken.pyi:2: error: Name "y" is not defined (diff) Alignment of first line difference: E: C:/Repos/mypy/test-data/unit/lib-stub/broken.pyi:2: error: Name "y" is n... A: c:/Repos/mypy/test-data/unit/lib-stub/broken.pyi:2: error: Name "y" is n... ^ __________________________________________ testMultiModuleTraceback_separate __________________________________________ [gw7] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-multimodule.test:251: c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-multimodule.test, line 251) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native__mypyc' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native_native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native_native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native_native.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-_v4ww3eu\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native__mypyc build\temp.win-amd64-3.10\Release\build\__native_native.obj /OUT:build\lib.win-amd64-3.10\native__mypyc.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native__mypyc.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native__mypyc.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native__mypyc.cp310-win_amd64.exp Generating code Finished generating code building 'native' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\native.c /Fobuild\temp.win-amd64-3.10\Release\build\native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 native.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code building 'other__mypyc' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native_other.c /Fobuild\temp.win-amd64-3.10\Release\build\__native_other.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native_other.c c:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data c:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_other__mypyc build\temp.win-amd64-3.10\Release\build\__native_other.obj /OUT:build\lib.win-amd64-3.10\other__mypyc.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\other__mypyc.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\other__mypyc.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\other__mypyc.cp310-win_amd64.exp Generating code Finished generating code building 'other' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\other.c /Fobuild\temp.win-amd64-3.10\Release\build\other.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 other.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_other build\temp.win-amd64-3.10\Release\build\other.obj /OUT:build\lib.win-amd64-3.10\other.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native__mypyc.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\other__mypyc.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\other.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 6, in (diff) other.fail2() File "other.py", line 3, in fail2 x[2] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "driver.py", line 12, in (diff) native.fail() File "native.py", line 4, in fail fail2() File "other.py", line 3, in fail2 ... Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-_v4ww3eu\tmp\driver.py", line 6, in (diff) other.fail2() File "other.py", line 3, in fail2 x[2] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-_v4ww3eu\tmp\driver.py", line 12, in (diff) native.fail() File "native.py", line 4, in fail fail2() File "other.py", line 3, in fail2 ... Alignment of first line difference: E: File "driver.py", line 6, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-_v4ww3eu\tmp\driver.py... ^ =============================================== short test summary info =============================================== FAILED mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAdditionalArgs FAILED mypy/test/testfinegrainedcache.py::FineGrainedCacheSuite::fine-grained-blockers.test::testImportBringsAnotherFileWithBlockingError1_cached FAILED mypy/test/testfinegrainedcache.py::FineGrainedCacheSuite::fine-grained-blockers.test::testImportBringsAnotherFileWithSemanticAnalysisBlockingError_cached FAILED mypy/test/testfinegrainedcache.py::FineGrainedCacheSuite::fine-grained-blockers.test::testFixingBlockingErrorBringsInAnotherModuleWithBlocker_cached FAILED mypyc/test/test_run.py::TestRun::run-exceptions.test::testException FAILED mypyc/test/test_run.py::TestRun::run-exceptions.test::testTryExcept FAILED mypyc/test/test_run.py::TestRun::run-exceptions.test::testExceptionAtModuleTopLevel FAILED mypyc/test/test_run.py::TestRun::run-loops.test::testForIterable FAILED mypyc/test/test_run.py::TestRun::run-classes.test::testProperty FAILED mypyc/test/test_run.py::TestRun::run-classes.test::testSubclassUninitAttr FAILED mypyc/test/test_run.py::TestRun::run-generators.test::testYieldThrow FAILED mypyc/test/test_run.py::TestRun::run-multimodule.test::testMultiModuleTraceback FAILED mypyc/test/test_run.py::TestRunMultiFile::run-multimodule.test::testMultiModuleTraceback_multi FAILED mypy/test/testfinegrained.py::FineGrainedSuite::fine-grained-blockers.test::testImportBringsAnotherFileWithBlockingError1 FAILED mypy/test/testfinegrained.py::FineGrainedSuite::fine-grained-blockers.test::testImportBringsAnotherFileWithSemanticAnalysisBlockingError FAILED mypy/test/testfinegrained.py::FineGrainedSuite::fine-grained-blockers.test::testFixingBlockingErrorBringsInAnotherModuleWithBlocker FAILED mypy/test/testfinegrained.py::FineGrainedSuite::fine-grained-modules.test::testAddFileWhichImportsLibModuleWithErrors FAILED mypyc/test/test_run.py::TestRunSeparate::run-multimodule.test::testMultiModuleTraceback_separate ======================== 18 failed, 10081 passed, 380 skipped, 10 xfailed in 422.21s (0:07:02) ======================== ```
AlexWaygood commented 2 years ago

I'm sorry, I have no idea why your paths start with a lowercase "c" :)

This has never happened to me, though, so I doubt mypy, the Windows operating system, or the stdlib are the direct cause of this.

The mypyc errors, on the other hand, I can reproduce on my Windows machine, so we should probably fix those.

edreamleo commented 2 years ago

@JelleZijlstra Hmm. No, setuptools isn't part of the standard library. But does that help?

Sheesh again. Hacking the contents of the .pth file seem even uglier! This seems like one of those problems for which no good solution exists. Let's hope I'm wrong.

edreamleo commented 2 years ago

@AlexWaygood I'm stumped. I can well believe that something on my end is to blame. But what could it be?

edreamleo commented 2 years ago

@AlexWaygood @JelleZijlstra @pranavrajpal @hauntsaninja

Thanks for all your sympathetic help. I feel confident that a) something is weird on my end and, b) that I can ignore the weirdness for now.

edreamleo commented 2 years ago

@AlexWaygood Wow. It looks like the lower-case drive letter comes from cd statements in .cmd files! After changing the case only the expected failures remain (I think):

10 failed, 10089 passed, 380 skipped, 10 xfailed

```console C:\Repos\mypy>activate (venv) C:\Repos\mypy>activate (venv) C:\Repos\mypy>pytest --cache-clear ================================================= test session starts ================================================= platform win32 -- Python 3.10.4, pytest-7.1.2, pluggy-1.0.0 rootdir: C:\Repos\mypy, configfile: pytest.ini, testpaths: mypy/test, mypyc/test plugins: cov-2.12.1, forked-1.4.0, xdist-2.5.0 gw0 [10489] / gw1 [10489] / gw2 [10489] / gw3 [10489] / gw4 [10489] / gw5 [10489] / gw6 [10489] / gw7 [10489] .....................................s........................................................................... [ 1%] ....x............................................................................................................ [ 2%] ................................................................................................................ [ 3%] ................................................................................................................ [ 4%] ................................................................................................................. [ 5%] ................................................................................................................ [ 6%] ................................................................................................................ [ 7%] ...............................................s....................................s........................... [ 8%] ............................................................................s................................... [ 9%] ................................................s................................................................ [ 10%] ................................................................................................................ [ 11%] ................................................................................................................ [ 12%] ................................................................................................................ [ 13%] ...............................................................................................s................. [ 14%] ................................................................................................................ [ 16%] ................................................................................................................ [ 17%] ................................................................................................................ [ 18%] ................................................................................................................ [ 19%] ................................................................................................................ [ 20%] ..........................................................................................................s..... [ 21%] ................................................................................................................. [ 22%] ................................................................................................................ [ 23%] ................................................................................................................ [ 24%] ................................................................................................................. [ 25%] .......................................................s..s..................................................... [ 26%] ...................s............................................................................................ [ 27%] ................................................................................................................ [ 28%] ................................................................................................................ [ 29%] ................................................................................................................ [ 31%] ................................................................................................................ [ 32%] ................................................................................................................ [ 33%] ................................................................................................................ [ 34%] .........................s...................................................................................... [ 35%] ................................................................................................................ [ 36%] ........s....................................................................................................... [ 37%] ................................................................................................................ [ 38%] .................................................................................................................. [ 39%] ................................................................................................................ [ 40%] ........................................................................................s....................... [ 41%] ..................................................................................s............................. [ 42%] ...............................................................................s...s............................ [ 43%] ................................................................................................................ [ 44%] ................................................................................................................ [ 46%] ................................................................................................................. [ 47%] ...........................................................................s.................................... [ 48%] .......................................................................x.............x.......................... [ 49%] ................................................................................................................ [ 50%] ...s.............................s....s......................................................................... [ 51%] ................................................................................................................ [ 52%] .......................................s........................................................................ [ 53%] .........s..........................s........................................................................... [ 54%] ................................................s......s..........................................s............. [ 55%] .....................................................s.......s...........ss..................x.................. [ 56%] ..................................x..............................x.............................................. [ 57%] ................................................................................................................ [ 58%] ....................................s....s...................s.ss.....................sss.ss.s..s....s....s..... [ 59%] ...........................................s....s..........ss.ssssss.s.......s........s........s................ [ 60%] .....ss.........s..........s...............s.s.................................................................. [ 62%] ......................s.......................s.......................................................s......... [ 63%] .........................s.................................................................s...........s......ss.. [ 64%] .................s........s...........s.........s..sss............................s.s...ss.ss.s......s.......... [ 65%] ...s............................................................................................................ [ 66%] ............................s................................................................................... [ 67%] .........s..s.sssss.ssss.ss.sssssssssssssssssssssssssss.sssssssssssssssssss.sssss.sssssssssss.ss.s.s.....s.ss... [ 68%] ..........ss.ssssss.s.......s...s...s..ssss...........s...............s.s.........ss...s...................s.... [ 69%] .s........s.s.......ss.......................s....................s.s.ss.s.sssss.sssssss.s.ss.s.ssssss.sss....... [ 70%] ssss....s.s....ss...s.............ss..............s.......s..........................................s........ss [ 71%] .ss.ssssss.....s........................................s....s.s........................s....................... [ 72%] ..........................ssssss...ss...........s...s..s...s..........s.s..........ss.s.s.ss..sss...ssss.s...... [ 73%] .s......s.....s..sssssssss.s.sss.....ss........................................................sss.ss............ [ 74%] ................................................................................................................ [ 75%] ................................................................................................................ [ 77%] .............................................x.................................................................. [ 78%] ................................................................................................................ [ 79%] ...........................................sss...s.............................................................. [ 80%] .......................................................................................................s........ [ 81%] ................................................................................................................ [ 82%] ................................................................................................................ [ 83%] .................................................................................s...s..s..s....s..s..s..s..s..s [ 84%] ..s.s.s....ss..ss..s...s..s.s..s..s.s..s.s.s..s.s..s..s..s.s...s...s..ss.s..ss........s..s...............s...... [ 85%] s....................................................s.......................................................... [ 86%] ..s.......sss................................................................................................... [ 87%] ................................s................................................................................ [ 88%] ................................................................................................................ [ 89%] ....................................................s........................................................... [ 90%] ................................................................................................................. [ 91%] ................................................................................................................ [ 93%] .................................................s............................................................F. [ 94%] ...F....................F.................F..................................F.......F........................... [ 95%] ........................F.........................................F............................................. [ 96%] ............................................................................x.......x........................... [ 97%] ............F.....................s........s..s...........................s..................................... [ 98%] .......ssssssss...........s...............................................F..................................... [ 99%] .....................................................x.. [100%] ====================================================== FAILURES ======================================================= ____________________________________________________ testException ____________________________________________________ [gw0] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-exceptions.test:3: c:\Repos\mypy\venv\lib\site-packages\pluggy\_hooks.py:265: in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\pluggy\_manager.py:80: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:174: in pytest_runtest_call raise e c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:166: in pytest_runtest_call item.runtest() c:\Repos\mypy\mypy\test\data.py:270: in runtest suite.run_case(self) c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-exceptions.test, line 3) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c C:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-mhkh5yrz\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 4, in (diff) f([]) File "native.py", line 3, in f g(x) File "native.py", line 6, in g x[5] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "driver.py", line 8, in (diff) r1() File "native.py", line 10, in r1 q1() File "native.py", line 13, in q1 raise Exception("test") Exception: test Traceback (most recent call last): File "driver.py", line 12, in (diff) r2() File "native.py", line 16, in r2 q2() File "native.py", line 19, in q2 raise Exception Exception Traceback (most recent call last): File "driver.py", line 16, in (diff) hey() File "native.py", line 26, in hey A() File "native.py", line 23, in __init__ ... Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-mhkh5yrz\tmp\driver.py", line 4, in (diff) f([]) File "native.py", line 3, in f g(x) File "native.py", line 6, in g x[5] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-mhkh5yrz\tmp\driver.py", line 8, in (diff) r1() File "native.py", line 10, in r1 q1() File "native.py", line 13, in q1 raise Exception("test") Exception: test Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-mhkh5yrz\tmp\driver.py", line 12, in (diff) r2() File "native.py", line 16, in r2 q2() File "native.py", line 19, in q2 raise Exception Exception Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-mhkh5yrz\tmp\driver.py", line 16, in (diff) hey() File "native.py", line 26, in hey A() File "native.py", line 23, in __init__ ... Alignment of first line difference: E: File "driver.py", line 4, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-mhkh5yrz\tmp\driver.py... ^ ____________________________________________________ testTryExcept ____________________________________________________ [gw0] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-exceptions.test:84: c:\Repos\mypy\venv\lib\site-packages\pluggy\_hooks.py:265: in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\pluggy\_manager.py:80: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:174: in pytest_runtest_call raise e c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:166: in pytest_runtest_call item.runtest() c:\Repos\mypy\mypy\test\data.py:270: in runtest suite.run_case(self) c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-exceptions.test, line 84) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c C:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-mp3u2dxb\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: == i == Traceback (most recent call last): File "driver.py", line 6, in (diff) i() File "native.py", line 44, in i r(0) File "native.py", line 15, in r [0][1] IndexError: list index out of range == k == Traceback (most recent call last): File "native.py", line 59, in k r(1) File "native.py", line 17, in r raise Exception('hi') Exception: hi During handling of the above exception, another exception occurred: Traceback (most recent call last): File "driver.py", line 12, in (diff) k() File "native.py", line 61, in k r(0) File "native.py", line 15, in r ... Actual: == i == Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-mp3u2dxb\tmp\driver.py", line 6, in (diff) i() File "native.py", line 44, in i r(0) File "native.py", line 15, in r [0][1] IndexError: list index out of range == k == Traceback (most recent call last): File "native.py", line 59, in k r(1) File "native.py", line 17, in r raise Exception('hi') Exception: hi During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-mp3u2dxb\tmp\driver.py", line 12, in (diff) k() File "native.py", line 61, in k r(0) File "native.py", line 15, in r ... Alignment of first line difference: E: File "driver.py", line 6, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-mp3u2dxb\tmp\driver.py... ^ ____________________________________________ testExceptionAtModuleTopLevel ____________________________________________ [gw0] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-exceptions.test:425: c:\Repos\mypy\venv\lib\site-packages\pluggy\_hooks.py:265: in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\pluggy\_manager.py:80: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:174: in pytest_runtest_call raise e c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:166: in pytest_runtest_call item.runtest() c:\Repos\mypy\mypy\test\data.py:270: in runtest suite.run_case(self) c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-exceptions.test, line 425) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c C:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-xdykl95k\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 3, in (diff) import native File "native.py", line 6, in f(y) TypeError: int object expected; got str Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-xdykl95k\tmp\driver.py", line 3, in (diff) import native File "native.py", line 6, in f(y) TypeError: int object expected; got str Alignment of first line difference: E: File "driver.py", line 3, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-xdykl95k\tmp\driver.py... ^ ___________________________________________________ testForIterable ___________________________________________________ [gw5] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-loops.test:278: c:\Repos\mypy\venv\lib\site-packages\pluggy\_hooks.py:265: in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\pluggy\_manager.py:80: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:174: in pytest_runtest_call raise e c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:166: in pytest_runtest_call item.runtest() c:\Repos\mypy\mypy\test\data.py:270: in runtest suite.run_case(self) c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-loops.test, line 278) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c C:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-2eehsvax\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 16, in (diff) iterate_over_any(5) File "native.py", line 3, in iterate_over_any for element in a: TypeError: 'int' object is not iterable Traceback (most recent call last): File "driver.py", line 20, in (diff) iterate_over_iterable(broken_generator(5)) File "native.py", line 7, in iterate_over_iterable for element in iterable: File "driver.py", line 8, in broken_generator (diff) raise Exception('Exception Manually Raised') Exception: Exception Manually Raised Traceback (most recent call last): File "driver.py", line 24, in (diff) iterate_and_delete(d) File "native.py", line 11, in iterate_and_delete for key in d: RuntimeError: dictionary changed size during iteration ... Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-2eehsvax\tmp\driver.py", line 16, in (diff) iterate_over_any(5) File "native.py", line 3, in iterate_over_any for element in a: TypeError: 'int' object is not iterable Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-2eehsvax\tmp\driver.py", line 20, in (diff) iterate_over_iterable(broken_generator(5)) File "native.py", line 7, in iterate_over_iterable for element in iterable: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-2eehsvax\tmp\driver.py", line 8, in broken_generator (diff) raise Exception('Exception Manually Raised') Exception: Exception Manually Raised Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-2eehsvax\tmp\driver.py", line 24, in (diff) iterate_and_delete(d) File "native.py", line 11, in iterate_and_delete for key in d: RuntimeError: dictionary changed size during iteration ... Alignment of first line difference: E: File "driver.py", line 16, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-2eehsvax\tmp\driver.py... ^ ____________________________________________________ testProperty _____________________________________________________ [gw5] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-classes.test:1604: c:\Repos\mypy\venv\lib\site-packages\pluggy\_hooks.py:265: in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\pluggy\_manager.py:80: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:174: in pytest_runtest_call raise e c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:166: in pytest_runtest_call item.runtest() c:\Repos\mypy\mypy\test\data.py:270: in runtest suite.run_case(self) c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-classes.test, line 1604) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c C:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-m8zr8b7y\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 5, in (diff) print (x.rankine) File "native.py", line 16, in rankine raise NotImplementedError NotImplementedError ... Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-m8zr8b7y\tmp\driver.py", line 5, in (diff) print (x.rankine) File "native.py", line 16, in rankine raise NotImplementedError NotImplementedError ... Alignment of first line difference: E: File "driver.py", line 5, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-m8zr8b7y\tmp\driver.py... ^ _______________________________________________ testSubclassUninitAttr ________________________________________________ [gw6] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-classes.test:636: c:\Repos\mypy\venv\lib\site-packages\pluggy\_hooks.py:265: in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\pluggy\_manager.py:80: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:174: in pytest_runtest_call raise e c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:166: in pytest_runtest_call item.runtest() c:\Repos\mypy\mypy\test\data.py:270: in runtest suite.run_case(self) c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-classes.test, line 636) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c C:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-om1ido41\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 4, in (diff) A().x AttributeError: attribute 'x' of 'X' undefined Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-om1ido41\tmp\driver.py", line 4, in (diff) A().x AttributeError: attribute 'x' of 'X' undefined Alignment of first line difference: E: File "driver.py", line 4, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-om1ido41\tmp\driver.py... ^ ___________________________________________________ testYieldThrow ____________________________________________________ [gw6] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-generators.test:248: c:\Repos\mypy\venv\lib\site-packages\pluggy\_hooks.py:265: in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\pluggy\_manager.py:80: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:174: in pytest_runtest_call raise e c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:166: in pytest_runtest_call item.runtest() c:\Repos\mypy\mypy\test\data.py:270: in runtest suite.run_case(self) c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-generators.test, line 248) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native.c C:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-7ilweyot\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\__native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: ... File "native.py", line 9, in generator yield 2 File "native.py", line 8, in generator yield 1 File "driver.py", line 31, in (diff) raise Exception File "native.py", line 10, in generator yield 3 File "native.py", line 30, in wrapper ... Actual: ... File "native.py", line 9, in generator yield 2 File "native.py", line 8, in generator yield 1 File "C:\Users\Dev\AppData\Local\Temp\mypy-test-7ilweyot\tmp\driver.py", line 31, in (diff) raise Exception File "native.py", line 10, in generator yield 3 File "native.py", line 30, in wrapper ... Alignment of first line difference: E: File "driver.py", line 31, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-7ilweyot\tmp\driver.py... ^ ______________________________________________ testMultiModuleTraceback _______________________________________________ [gw5] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-multimodule.test:251: c:\Repos\mypy\venv\lib\site-packages\pluggy\_hooks.py:265: in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\pluggy\_manager.py:80: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:174: in pytest_runtest_call raise e c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:166: in pytest_runtest_call item.runtest() c:\Repos\mypy\mypy\test\data.py:270: in runtest suite.run_case(self) c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-multimodule.test, line 251) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building '3ef2a66b8671abc76f6e__mypyc' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native_3ef2a66b8671abc76f6e.c /Fobuild\temp.win-amd64-3.10\Release\build\__native_3ef2a66b8671abc76f6e.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native_3ef2a66b8671abc76f6e.c C:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-d335iuaa\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_3ef2a66b8671abc76f6e__mypyc build\temp.win-amd64-3.10\Release\build\__native_3ef2a66b8671abc76f6e.obj /OUT:build\lib.win-amd64-3.10\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.exp Generating code Finished generating code building 'native' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\native.c /Fobuild\temp.win-amd64-3.10\Release\build\native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 native.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code building 'other' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\other.c /Fobuild\temp.win-amd64-3.10\Release\build\other.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 other.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_other build\temp.win-amd64-3.10\Release\build\other.obj /OUT:build\lib.win-amd64-3.10\other.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\other.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 6, in (diff) other.fail2() File "other.py", line 3, in fail2 x[2] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "driver.py", line 12, in (diff) native.fail() File "native.py", line 4, in fail fail2() File "other.py", line 3, in fail2 ... Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-d335iuaa\tmp\driver.py", line 6, in (diff) other.fail2() File "other.py", line 3, in fail2 x[2] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-d335iuaa\tmp\driver.py", line 12, in (diff) native.fail() File "native.py", line 4, in fail fail2() File "other.py", line 3, in fail2 ... Alignment of first line difference: E: File "driver.py", line 6, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-d335iuaa\tmp\driver.py... ^ ___________________________________________ testMultiModuleTraceback_multi ____________________________________________ [gw2] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-multimodule.test:251: c:\Repos\mypy\venv\lib\site-packages\pluggy\_hooks.py:265: in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\pluggy\_manager.py:80: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:174: in pytest_runtest_call raise e c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:166: in pytest_runtest_call item.runtest() c:\Repos\mypy\mypy\test\data.py:270: in runtest suite.run_case(self) c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-multimodule.test, line 251) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building '3ef2a66b8671abc76f6e__mypyc' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native_3ef2a66b8671abc76f6e.c /Fobuild\temp.win-amd64-3.10\Release\build\__native_3ef2a66b8671abc76f6e.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 __native_3ef2a66b8671abc76f6e.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native_native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native_native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 __native_native.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native_other.c /Fobuild\temp.win-amd64-3.10\Release\build\__native_other.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 __native_other.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\bytes_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\bytes_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 bytes_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\dict_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\dict_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 dict_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\exc_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\exc_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 exc_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\generic_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\generic_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 generic_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\getargs.c /Fobuild\temp.win-amd64-3.10\Release\build\getargs.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 getargs.c build\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\getargsfast.c /Fobuild\temp.win-amd64-3.10\Release\build\getargsfast.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 getargsfast.c build\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\init.c /Fobuild\temp.win-amd64-3.10\Release\build\init.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 init.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\int_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\int_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 int_ops.c build\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data build\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\list_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\list_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 list_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\misc_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\misc_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 misc_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\set_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\set_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 set_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\str_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\str_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 str_ops.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\tuple_ops.c /Fobuild\temp.win-amd64-3.10\Release\build\tuple_ops.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 tuple_ops.c creating C:\Users\Dev\AppData\Local\Temp\mypy-test-oocdxkk8\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_3ef2a66b8671abc76f6e__mypyc build\temp.win-amd64-3.10\Release\build\__native_3ef2a66b8671abc76f6e.obj build\temp.win-amd64-3.10\Release\build\__native_native.obj build\temp.win-amd64-3.10\Release\build\__native_other.obj build\temp.win-amd64-3.10\Release\build\bytes_ops.obj build\temp.win-amd64-3.10\Release\build\dict_ops.obj build\temp.win-amd64-3.10\Release\build\exc_ops.obj build\temp.win-amd64-3.10\Release\build\generic_ops.obj build\temp.win-amd64-3.10\Release\build\getargs.obj build\temp.win-amd64-3.10\Release\build\getargsfast.obj build\temp.win-amd64-3.10\Release\build\init.obj build\temp.win-amd64-3.10\Release\build\int_ops.obj build\temp.win-amd64-3.10\Release\build\list_ops.obj build\temp.win-amd64-3.10\Release\build\misc_ops.obj build\temp.win-amd64-3.10\Release\build\set_ops.obj build\temp.win-amd64-3.10\Release\build\str_ops.obj build\temp.win-amd64-3.10\Release\build\tuple_ops.obj /OUT:build\lib.win-amd64-3.10\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.exp LINK : /LTCG specified but no code generation required; remove /LTCG from the link command line to improve linker performance building 'native' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\native.c /Fobuild\temp.win-amd64-3.10\Release\build\native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 native.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp LINK : /LTCG specified but no code generation required; remove /LTCG from the link command line to improve linker performance building 'other' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\other.c /Fobuild\temp.win-amd64-3.10\Release\build\other.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 /GL- /wd9025 other.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_other build\temp.win-amd64-3.10\Release\build\other.obj /OUT:build\lib.win-amd64-3.10\other.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.exp LINK : /LTCG specified but no code generation required; remove /LTCG from the link command line to improve linker performance copying build\lib.win-amd64-3.10\3ef2a66b8671abc76f6e__mypyc.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\other.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/GL' with '/GL-' cl : Command line warning D9014 : invalid value '9025' for '/wd'; assuming '5999' Expected: Traceback (most recent call last): File "driver.py", line 6, in (diff) other.fail2() File "other.py", line 3, in fail2 x[2] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "driver.py", line 12, in (diff) native.fail() File "native.py", line 4, in fail fail2() File "other.py", line 3, in fail2 ... Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-oocdxkk8\tmp\driver.py", line 6, in (diff) other.fail2() File "other.py", line 3, in fail2 x[2] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-oocdxkk8\tmp\driver.py", line 12, in (diff) native.fail() File "native.py", line 4, in fail fail2() File "other.py", line 3, in fail2 ... Alignment of first line difference: E: File "driver.py", line 6, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-oocdxkk8\tmp\driver.py... ^ __________________________________________ testMultiModuleTraceback_separate __________________________________________ [gw0] win32 -- Python 3.10.4 c:\Repos\mypy\venv\Scripts\python.exe data: C:\Repos\mypy\mypyc\test-data\run-multimodule.test:251: c:\Repos\mypy\venv\lib\site-packages\pluggy\_hooks.py:265: in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\pluggy\_manager.py:80: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:174: in pytest_runtest_call raise e c:\Repos\mypy\venv\lib\site-packages\_pytest\runner.py:166: in pytest_runtest_call item.runtest() c:\Repos\mypy\mypy\test\data.py:270: in runtest suite.run_case(self) c:\Repos\mypy\mypyc\test\test_run.py:137: in run_case self.run_case_inner(testcase) c:\Repos\mypy\mypyc\test\test_run.py:153: in run_case_inner self.run_case_step(testcase, step) c:\Repos\mypy\mypyc\test\test_run.py:316: in run_case_step assert_test_output(testcase, outlines, msg, expected) E AssertionError: Invalid output (C:\Repos\mypy\mypyc\test-data\run-multimodule.test, line 251) ------------------------------------------------ Captured stdout call ------------------------------------------------- running build_ext building 'native__mypyc' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\build C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native_native.c /Fobuild\temp.win-amd64-3.10\Release\build\__native_native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native_native.c C:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data creating C:\Users\Dev\AppData\Local\Temp\mypy-test-pg5jir_6\tmp\build\lib.win-amd64-3.10 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native__mypyc build\temp.win-amd64-3.10\Release\build\__native_native.obj /OUT:build\lib.win-amd64-3.10\native__mypyc.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native__mypyc.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native__mypyc.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native__mypyc.cp310-win_amd64.exp Generating code Finished generating code building 'native' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\native.c /Fobuild\temp.win-amd64-3.10\Release\build\native.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 native.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_native build\temp.win-amd64-3.10\Release\build\native.obj /OUT:build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\native.cp310-win_amd64.exp Generating code Finished generating code building 'other__mypyc' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Repos\mypy\mypyc\lib-rt -Ibuild -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\__native_other.c /Fobuild\temp.win-amd64-3.10\Release\build\__native_other.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 __native_other.c C:\Repos\mypy\mypyc\lib-rt\getargs.c(342): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\getargsfast.c(452): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(279): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data C:\Repos\mypy\mypyc\lib-rt\int_ops.c(344): warning C4244: '=': conversion from 'Py_ssize_t' to 'digit', possible loss of data C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_other__mypyc build\temp.win-amd64-3.10\Release\build\__native_other.obj /OUT:build\lib.win-amd64-3.10\other__mypyc.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\other__mypyc.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\other__mypyc.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\other__mypyc.cp310-win_amd64.exp Generating code Finished generating code building 'other' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\Repos\mypy\venv\include -IC:\Python\Python3.10\include -IC:\Python\Python3.10\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcbuild\other.c /Fobuild\temp.win-amd64-3.10\Release\build\other.obj /Od /DEBUG:FASTLINK /wd4102 /wd4101 /wd4146 other.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\Repos\mypy\venv\libs /LIBPATH:C:\Python\Python3.10\libs /LIBPATH:C:\Python\Python3.10 /LIBPATH:c:\Repos\mypy\venv\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64 /EXPORT:PyInit_other build\temp.win-amd64-3.10\Release\build\other.obj /OUT:build\lib.win-amd64-3.10\other.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.lib Creating library build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\build\other.cp310-win_amd64.exp Generating code Finished generating code copying build\lib.win-amd64-3.10\native__mypyc.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\native.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\other__mypyc.cp310-win_amd64.pyd -> copying build\lib.win-amd64-3.10\other.cp310-win_amd64.pyd -> ------------------------------------------------ Captured stderr call ------------------------------------------------- cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/Ox' with '/Od' cl : Command line warning D9025 : overriding '/Ox' with '/Od' Expected: Traceback (most recent call last): File "driver.py", line 6, in (diff) other.fail2() File "other.py", line 3, in fail2 x[2] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "driver.py", line 12, in (diff) native.fail() File "native.py", line 4, in fail fail2() File "other.py", line 3, in fail2 ... Actual: Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-pg5jir_6\tmp\driver.py", line 6, in (diff) other.fail2() File "other.py", line 3, in fail2 x[2] = 2 IndexError: list assignment index out of range Traceback (most recent call last): File "C:\Users\Dev\AppData\Local\Temp\mypy-test-pg5jir_6\tmp\driver.py", line 12, in (diff) native.fail() File "native.py", line 4, in fail fail2() File "other.py", line 3, in fail2 ... Alignment of first line difference: E: File "driver.py", line 6, in ... A: File "C:\Users\Dev\AppData\Local\Temp\mypy-test-pg5jir_6\tmp\driver.py... ^ =============================================== short test summary info =============================================== FAILED mypyc/test/test_run.py::TestRun::run-exceptions.test::testException FAILED mypyc/test/test_run.py::TestRun::run-exceptions.test::testTryExcept FAILED mypyc/test/test_run.py::TestRun::run-exceptions.test::testExceptionAtModuleTopLevel FAILED mypyc/test/test_run.py::TestRun::run-loops.test::testForIterable FAILED mypyc/test/test_run.py::TestRun::run-classes.test::testProperty FAILED mypyc/test/test_run.py::TestRun::run-classes.test::testSubclassUninitAttr FAILED mypyc/test/test_run.py::TestRun::run-generators.test::testYieldThrow FAILED mypyc/test/test_run.py::TestRun::run-multimodule.test::testMultiModuleTraceback FAILED mypyc/test/test_run.py::TestRunMultiFile::run-multimodule.test::testMultiModuleTraceback_multi FAILED mypyc/test/test_run.py::TestRunSeparate::run-multimodule.test::testMultiModuleTraceback_separate ======================== 10 failed, 10089 passed, 380 skipped, 10 xfailed in 422.16s (0:07:02) ======================== (venv) C:\Repos\mypy> ```

I'm shaking my head in disbelief.

edreamleo commented 2 years ago

@AlexWaygood One last test. I completely reinstalled mypy and reran the tests with pytest:

10 failed, 10096 passed, 380 skipped, 9 xfailed

Not quite the same as before, but close enough.

Finally, C:\Repos\mypy\venv\Lib\site-packages\easy-install.pth still contains "c:" rather than "C:". I don't think mypy needs to be concerned with this weirdness. I'm just including this report for completeness's sake.

JelleZijlstra commented 2 years ago

@edreamleo I took the liberty to add details tags to collapse your long outputs. The key is put enough blank lines around the opening and closing tags.

edreamleo commented 2 years ago

@JelleZijlstra Thanks! That's a great tip. I'll try to remember it, or at least remember that <details> can be made to work :-)

pranavrajpal commented 2 years ago

Huh, I'm intrigued about why your file paths start with a lowercase c rather than an uppercase C :)

It looks like that's the cause for a lot of the errors.

I think I've managed to come up with a simplified reproduction for that by just using a lowercase drive name in the path passed to pytest. Running pytest e:\Pranav\Github\mypy/mypy/test/testfinegrained.py -n 0 -k testFixingBlockingErrorBringsInAnotherModuleWithBlocker for me gives:

================================================= test session starts =================================================
platform win32 -- Python 3.9.6, pytest-7.1.2, pluggy-1.0.0
rootdir: e:\Pranav\Github\mypy, configfile: pytest.ini
plugins: cov-2.12.1, forked-1.4.0, xdist-2.5.0
collected 668 items / 667 deselected / 1 selected

mypy\test\testfinegrained.py F                                                                                   [100%]

====================================================== FAILURES =======================================================
_______________________________ testFixingBlockingErrorBringsInAnotherModuleWithBlocker _______________________________
data: E:\Pranav\Github\mypy\test-data\unit\fine-grained-blockers.test:474:
e:\pranav\github\mypy\win_venv\lib\site-packages\pluggy\_hooks.py:265: in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
e:\pranav\github\mypy\win_venv\lib\site-packages\pluggy\_manager.py:80: in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
e:\pranav\github\mypy\win_venv\lib\site-packages\_pytest\runner.py:174: in pytest_runtest_call
    raise e
e:\pranav\github\mypy\win_venv\lib\site-packages\_pytest\runner.py:166: in pytest_runtest_call
    item.runtest()
E:\Pranav\Github\mypy\mypy\test\data.py:270: in runtest
    suite.run_case(self)
E:\Pranav\Github\mypy\mypy\test\testfinegrained.py:133: in run_case
    assert_string_arrays_equal(
E   AssertionError: Invalid output (E:\Pranav\Github\mypy\test-data\unit\fine-grained-blockers.test, line 474)
------------------------------------------------ Captured stderr call -------------------------------------------------
Expected:
  ==
  a.py:1: error: invalid syntax
  ==
  E:/Pranav/Github/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax (diff)
  ==
  a.py:2: error: "int" not callable
Actual:
  ==
  a.py:1: error: invalid syntax
  ==
  e:/Pranav/Github/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax (diff)
  ==
  a.py:2: error: "int" not callable

Alignment of first line difference:
  E: E:/Pranav/Github/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: inva...
  A: e:/Pranav/Github/mypy/test-data/unit/lib-stub/blocker.pyi:2: error: inva...
     ^
=============================================== short test summary info ===============================================
FAILED mypy/test/testfinegrained.py::FineGrainedSuite::fine-grained-blockers.test::testFixingBlockingErrorBringsInAnotherModuleWithBlocker
========================================== 1 failed, 667 deselected in 0.77s ==========================================
edreamleo commented 2 years ago

@pranavrajpal Thanks for pursuing the drive-case letters mystery.

Our joint(?) conclusion: don't use lower-case drive names anywhere, including anywhere in .cmd files or in arguments to commands.

ethanhs commented 2 years ago

I suppose this would work if we called os.path.normcase on the path names when printing file names and testing them?

edreamleo commented 2 years ago

@hauntsaninja Thanks for the improved docs. They look spot on to me: clear, helpful, concise.

hauntsaninja commented 2 years ago

Glad to hear it! But you have Alex to thank :-)

hauntsaninja commented 2 years ago

Retitling this issue to reflect the remaining thing that needs improving here (as I understand it). Ethan's suggestion of os.path.normcase seems like it would be a simple fix, would be great if someone was interested in shipping it!

JukkaL commented 1 year ago

It might be easier to attract contributors to work on the remaining issue if we closed this issue and created a new one that was specific to the lower case issue. This way contributors wouldn't need to read through the long discussion above.