diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-10-29 17:01:42 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-10-29 17:01:42 +0100 |
commit | df0c3776c29d6cc6effd9bcec68fd06d7abde4b7 (patch) | |
tree | df0126f3bf6482c505a8fb9defd374ba89d5bc31 /tests/test_find_top_level.py | |
parent | 25bb1604ed7c81e3192cd7c4616ffdceabd64ad4 (diff) | |
download | gemato-df0c3776c29d6cc6effd9bcec68fd06d7abde4b7.tar.gz |
testutil: Simplify tests to use shutil.rmtree() for tempdir
Diffstat (limited to 'tests/test_find_top_level.py')
-rw-r--r-- | tests/test_find_top_level.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/test_find_top_level.py b/tests/test_find_top_level.py index deaee9c..2218799 100644 --- a/tests/test_find_top_level.py +++ b/tests/test_find_top_level.py @@ -164,10 +164,6 @@ class TestCrossDevice(TempDirTestCase): super(TestCrossDevice, self).setUp() os.symlink('/proc', os.path.join(self.dir, 'test')) - def tearDown(self): - os.unlink(os.path.join(self.dir, 'test')) - super(TestCrossDevice, self).tearDown() - def test_find_top_level_manifest(self): self.assertIsNone( gemato.find_top_level.find_top_level_manifest( @@ -188,10 +184,6 @@ class TestCrossDeviceManifest(TempDirTestCase): super(TestCrossDeviceManifest, self).setUp() os.symlink('/proc/version', os.path.join(self.dir, 'Manifest')) - def tearDown(self): - os.unlink(os.path.join(self.dir, 'Manifest')) - super(TestCrossDeviceManifest, self).tearDown() - def test_find_top_level_manifest(self): self.assertIsNone( gemato.find_top_level.find_top_level_manifest( @@ -215,11 +207,6 @@ class TestCompressedManifest(TempDirTestCase): with gzip.GzipFile(os.path.join(self.dir, 'subc/sub/Manifest.gz'), 'wb'): pass - def tearDown(self): - os.unlink(os.path.join(self.dir, 'subc/sub/Manifest.gz')) - os.unlink(os.path.join(self.dir, 'Manifest.gz')) - super(TestCompressedManifest, self).tearDown() - def test_find_top_level_manifest(self): self.assertEqual( os.path.relpath( @@ -266,11 +253,6 @@ class TestCompressedManifestWithIgnore(TempDirTestCase): with gzip.GzipFile(os.path.join(self.dir, 'subc/sub/Manifest.gz'), 'wb'): pass - def tearDown(self): - os.unlink(os.path.join(self.dir, 'subc/sub/Manifest.gz')) - os.unlink(os.path.join(self.dir, 'Manifest.gz')) - super(TestCompressedManifestWithIgnore, self).tearDown() - def test_find_top_level_manifest(self): self.assertEqual( os.path.relpath( |