(self)
| 3094 | os.unlink(allowlist.name) |
| 3095 | |
| 3096 | def test_mypy_build(self) -> None: |
| 3097 | output = run_stubtest(stub="+", runtime="", options=[]) |
| 3098 | assert output == ( |
| 3099 | "error: not checking stubs due to failed mypy compile:\n{}.pyi:1: " |
| 3100 | "error: Invalid syntax [syntax]\n".format(TEST_MODULE_NAME) |
| 3101 | ) |
| 3102 | |
| 3103 | output = run_stubtest(stub="def f(): ...\ndef f(): ...", runtime="", options=[]) |
| 3104 | assert output == ( |
| 3105 | "error: not checking stubs due to mypy build errors:\n{}.pyi:2: " |
| 3106 | 'error: Name "f" already defined on line 1 [no-redef]\n'.format(TEST_MODULE_NAME) |
| 3107 | ) |
| 3108 | |
| 3109 | def test_missing_stubs(self) -> None: |
| 3110 | output = io.StringIO() |
nothing calls this directly
no test coverage detected