Skip to content

Commit

Permalink
Remove ZipSetupBase, no longer needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Aug 14, 2024
1 parent 645f570 commit f77da58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 4 additions & 4 deletions importlib_resources/tests/test_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_package_has_no_reader_fallback(self):
self.assertFalse(resources.files(module).joinpath('A').is_file())


class ResourceFromZipsTest01(util.ZipSetupBase, unittest.TestCase):
class ResourceFromZipsTest01(util.ZipSetup, unittest.TestCase):
ZIP_MODULE = 'data01'

def test_is_submodule_resource(self):
Expand Down Expand Up @@ -117,7 +117,7 @@ def test_as_file_directory(self):
assert not data.parent.exists()


class ResourceFromZipsTest02(util.ZipSetupBase, unittest.TestCase):
class ResourceFromZipsTest02(util.ZipSetup, unittest.TestCase):
ZIP_MODULE = 'data02'

def test_unrelated_contents(self):
Expand All @@ -135,7 +135,7 @@ def test_unrelated_contents(self):
)


class DeletingZipsTest(util.ZipSetupBase, unittest.TestCase):
class DeletingZipsTest(util.ZipSetup, unittest.TestCase):
"""Having accessed resources in a zip file should not keep an open
reference to the zip.
"""
Expand Down Expand Up @@ -230,7 +230,7 @@ def tearDownClass(cls):


class ResourceFromNamespaceZipTests(
util.ZipSetupBase,
util.ZipSetup,
ResourceFromNamespaceTests,
unittest.TestCase,
):
Expand Down
6 changes: 1 addition & 5 deletions importlib_resources/tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def test_useless_loader(self):
self.execute(package, 'utf-8.file')


class ZipSetupBase:
class ZipSetup:
ZIP_MODULE = 'data01'

def setUp(self):
Expand All @@ -158,7 +158,3 @@ def setUp(self):
)

self.data = importlib.import_module(self.ZIP_MODULE)


class ZipSetup(ZipSetupBase):
pass

0 comments on commit f77da58

Please sign in to comment.