Skip to content

Commit 2c157d8

Browse files
authored
Discard changes to pkg_resources/tests/test_resources.py
1 parent a9efffe commit 2c157d8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg_resources/tests/test_resources.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -861,11 +861,9 @@ def test_path_order(self, symlinked_tmpdir):
861861
(nspkg / '__init__.py').write_text(self.ns_str, encoding='utf-8')
862862
(subpkg / '__init__.py').write_text(vers_str % number, encoding='utf-8')
863863

864-
import nspkg # pyright: ignore[reportMissingImports] # Temporary package for test
865-
866864
with pytest.warns(DeprecationWarning, match="pkg_resources.declare_namespace"):
865+
import nspkg # pyright: ignore[reportMissingImports] # Temporary package for test
867866
import nspkg.subpkg # pyright: ignore[reportMissingImports] # Temporary package for test
868-
869867
expected = [str(site.realpath() / 'nspkg') for site in site_dirs]
870868
assert nspkg.__path__ == expected
871869
assert nspkg.subpkg.__version__ == 1

0 commit comments

Comments
 (0)