(self)
| 185 | self.assertTrue(data.find(b'__main__.Timer') != -1) |
| 186 | |
| 187 | def test_relativedir_bug46421(self): |
| 188 | # Test `python -m unittest` with a relative directory beginning with ./ |
| 189 | # Note: We have to switch to the project's top module's directory, as per |
| 190 | # the python unittest wiki. We will switch back when we are done. |
| 191 | projectlibpath = os.path.dirname(__file__).removesuffix("test") |
| 192 | with os_helper.change_cwd(projectlibpath): |
| 193 | # Testing with and without ./ |
| 194 | assert_python_ok('-m', 'unittest', "test/test_longexp.py") |
| 195 | assert_python_ok('-m', 'unittest', "./test/test_longexp.py") |
| 196 | |
| 197 | def test_run_code(self): |
| 198 | # Test expected operation of the '-c' switch |
nothing calls this directly
no test coverage detected