diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2023-02-05 21:12:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-05 21:12:27 +0100 |
commit | bcaecce5634a30313e574deae101ee017ffeff17 (patch) | |
tree | bdeb2b8a04c1c386dca7fd2f92a23df0f1d1c1e0 /tests/unittest_modutils.py | |
parent | ac41d4e58cf9c188df2f503e4d8c2bda3609330d (diff) | |
download | astroid-git-bcaecce5634a30313e574deae101ee017ffeff17.tar.gz |
Add support for custom import hooks (#1752)
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Diffstat (limited to 'tests/unittest_modutils.py')
-rw-r--r-- | tests/unittest_modutils.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/unittest_modutils.py b/tests/unittest_modutils.py index ab1acaac..9c058f2a 100644 --- a/tests/unittest_modutils.py +++ b/tests/unittest_modutils.py @@ -445,11 +445,7 @@ class ExtensionPackageWhitelistTest(unittest.TestCase): @pytest.mark.skipif(not HAS_URLLIB3, reason="This test requires urllib3.") def test_file_info_from_modpath__SixMetaPathImporter() -> None: - pytest.raises( - ImportError, - modutils.file_info_from_modpath, - ["urllib3.packages.six.moves.http_client"], - ) + assert modutils.file_info_from_modpath(["urllib3.packages.six.moves.http_client"]) if __name__ == "__main__": |