projects/aports·blob master · refs

22 lines · 494 B

1Bug-report: https://github.com/miracle2k/python-glob2/issues/30
2
3--- a/test.py
4+++ b/test.py
5@@ -46,7 +46,7 @@
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@@ -56,7 +56,7 @@
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