Skip to content

Commit

Permalink
Expand ModuleFiles and ImplicitContextFiles tests to include zip files.
Browse files Browse the repository at this point in the history
Module files zip tests is marked as xfail due to the issue reported in python/cpython#121735.
  • Loading branch information
jaraco committed Aug 14, 2024
1 parent d873fca commit 34ed4f7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions importlib_resources/tests/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import importlib
import contextlib

import pytest

import importlib_resources as resources
from ..abc import Traversable
from . import util
Expand Down Expand Up @@ -91,6 +93,11 @@ class ModuleFilesDiskTests(DirectSpec, util.DiskSetup, ModulesFiles, unittest.Te
pass


@pytest.mark.xfail(reason="python/cpython#121735")
class ModuleFilesZipTests(DirectSpec, util.ZipSetup, ModulesFiles, unittest.TestCase):
pass


class ImplicitContextFiles:
spec = {
'somepkg': {
Expand All @@ -117,5 +124,11 @@ class ImplicitContextFilesDiskTests(
pass


class ImplicitContextFilesZipTests(
DirectSpec, util.ZipSetup, ImplicitContextFiles, unittest.TestCase
):
pass


if __name__ == '__main__':
unittest.main()

0 comments on commit 34ed4f7

Please sign in to comment.