(self)
| 1613 | unlink(self.source) |
| 1614 | |
| 1615 | def setUp(self): |
| 1616 | self.source = TESTFN + '.py' |
| 1617 | self._clean() |
| 1618 | with open(self.source, 'w', encoding='utf-8') as fp: |
| 1619 | print('# This is a test file written by test_import.py', file=fp) |
| 1620 | sys.path.insert(0, os.curdir) |
| 1621 | importlib.invalidate_caches() |
| 1622 | |
| 1623 | def tearDown(self): |
| 1624 | assert sys.path[0] == os.curdir, 'Unexpected sys.path[0]' |
nothing calls this directly
no test coverage detected