(self)
| 1831 | """ |
| 1832 | |
| 1833 | def test_get_sourcefile(self): |
| 1834 | # Given a valid bytecode path, return the path to the corresponding |
| 1835 | # source file if it exists. |
| 1836 | with mock.patch('importlib._bootstrap_external._path_isfile') as _path_isfile: |
| 1837 | _path_isfile.return_value = True |
| 1838 | path = TESTFN + '.pyc' |
| 1839 | expect = TESTFN + '.py' |
| 1840 | self.assertEqual(_get_sourcefile(path), expect) |
| 1841 | |
| 1842 | def test_get_sourcefile_no_source(self): |
| 1843 | # Given a valid bytecode path without a corresponding source path, |
nothing calls this directly
no test coverage detected