(self)
| 202 | assert_python_ok('-m', 'timeit', '-n', '1') |
| 203 | |
| 204 | def test_run_module_bug1764407(self): |
| 205 | # -m and -i need to play well together |
| 206 | # Runs the timeit module and checks the __main__ |
| 207 | # namespace has been populated appropriately |
| 208 | p = spawn_python('-i', '-m', 'timeit', '-n', '1') |
| 209 | p.stdin.write(b'Timer\n') |
| 210 | p.stdin.write(b'exit()\n') |
| 211 | data = kill_python(p) |
| 212 | self.assertTrue(data.find(b'1 loop') != -1) |
| 213 | self.assertTrue(data.find(b'__main__.Timer') != -1) |
| 214 | |
| 215 | @support.cpython_only |
| 216 | def test_null_byte_in_interactive_mode(self): |
nothing calls this directly
no test coverage detected