(self)
| 1660 | unlink(self.source) |
| 1661 | |
| 1662 | def setUp(self): |
| 1663 | self.source = TESTFN + '.py' |
| 1664 | self._clean() |
| 1665 | with open(self.source, 'w', encoding='utf-8') as fp: |
| 1666 | print('# This is a test file written by test_import.py', file=fp) |
| 1667 | sys.path.insert(0, os.curdir) |
| 1668 | importlib.invalidate_caches() |
| 1669 | |
| 1670 | def tearDown(self): |
| 1671 | assert sys.path[0] == os.curdir, 'Unexpected sys.path[0]' |
nothing calls this directly
no test coverage detected