(self, contents)
| 39 | self.remove_modules() |
| 40 | |
| 41 | def rewrite_file(self, contents): |
| 42 | try: |
| 43 | compiled_path = cache_from_source(self.module_path) |
| 44 | if os.path.exists(compiled_path): |
| 45 | os.remove(compiled_path) |
| 46 | except NotImplementedError: |
| 47 | pass |
| 48 | with open(self.module_path, 'w', encoding='utf-8') as f: |
| 49 | f.write(contents) |
| 50 | |
| 51 | def test_package_import__semantics(self): |
| 52 |
no test coverage detected