| 1 | Bug-report: https://github.com/miracle2k/python-glob2/issues/30 |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | class BaseTest(object): |
| 8 | |
| 9 | - def setup(self): |
| 10 | + def setup_method(self): |
| 11 | self.basedir = tempfile.mkdtemp() |
| 12 | self._old_cwd = os.getcwd() |
| 13 | os.chdir(self.basedir) |
| 14 | |
| 15 | def setup_files(self): |
| 16 | pass |
| 17 | |
| 18 | - def teardown(self): |
| 19 | + def teardown_method(self): |
| 20 | os.chdir(self._old_cwd) |
| 21 | shutil.rmtree(self.basedir) |
| 22 |