diff --git a/tests/test_init_package.py b/tests/test_init_package.py index 8f376070..ea9115f8 100644 --- a/tests/test_init_package.py +++ b/tests/test_init_package.py @@ -11,8 +11,16 @@ def suite(): class TestInitPackage(OscTestCase): def _get_fixtures_dir(self): + # workaround for git because it doesn't allow empty dirs + if not os.path.exists(os.path.join(FIXTURES_DIR, 'osctest')): + os.mkdir(os.path.join(FIXTURES_DIR, 'osctest')) return FIXTURES_DIR + def tearDown(self): + if os.path.exists(os.path.join(FIXTURES_DIR, 'osctest')): + os.rmdir(os.path.join(FIXTURES_DIR, 'osctest')) + OscTestCase.tearDown(self) + def test_simple(self): """initialize a package dir""" pac_dir = os.path.join(self.tmpdir, 'testpkg')