(self)
| 657 | longname = 'areallylongpackageandmodulenametotestreprtruncation' |
| 658 | |
| 659 | def setUp(self): |
| 660 | self.pkgname = os.path.join(self.longname) |
| 661 | self.subpkgname = os.path.join(self.longname, self.longname) |
| 662 | # Make the package and subpackage |
| 663 | shutil.rmtree(self.pkgname, ignore_errors=True) |
| 664 | os.mkdir(self.pkgname) |
| 665 | create_empty_file(os.path.join(self.pkgname, '__init__.py')) |
| 666 | shutil.rmtree(self.subpkgname, ignore_errors=True) |
| 667 | os.mkdir(self.subpkgname) |
| 668 | create_empty_file(os.path.join(self.subpkgname, '__init__.py')) |
| 669 | # Remember where we are |
| 670 | self.here = os.getcwd() |
| 671 | sys.path.insert(0, self.here) |
| 672 | # When regrtest is run with its -j option, this command alone is not |
| 673 | # enough. |
| 674 | importlib.invalidate_caches() |
| 675 | |
| 676 | def tearDown(self): |
| 677 | actions = [] |
nothing calls this directly
no test coverage detected