aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_importlib/test_main.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2022-10-06 15:25:24 -0400
committerGitHub <noreply@github.com>2022-10-06 15:25:24 -0400
commit8af04cdef202364541540ed67e204b71e2e759d0 (patch)
tree2eee9ab0dee52dc07464ca8500d7b15ba328c68b /Lib/test/test_importlib/test_main.py
parent2b5f1360ead9aa72ae00de59edfd6c229d13933f (diff)
downloadcpython-8af04cdef202364541540ed67e204b71e2e759d0.tar.gz
cpython-8af04cdef202364541540ed67e204b71e2e759d0.zip
gh-97781: Apply changes from importlib_metadata 5. (GH-97785)
* gh-97781: Apply changes from importlib_metadata 5. * Apply changes from upstream * Apply changes from upstream.
Diffstat (limited to 'Lib/test/test_importlib/test_main.py')
-rw-r--r--Lib/test/test_importlib/test_main.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/Lib/test/test_importlib/test_main.py b/Lib/test/test_importlib/test_main.py
index d9d067c4b23..30b68b6ae7d 100644
--- a/Lib/test/test_importlib/test_main.py
+++ b/Lib/test/test_importlib/test_main.py
@@ -1,8 +1,6 @@
import re
-import json
import pickle
import unittest
-import warnings
import importlib.metadata
try:
@@ -260,14 +258,6 @@ class TestEntryPoints(unittest.TestCase):
"""EntryPoints should be hashable"""
hash(self.ep)
- def test_json_dump(self):
- """
- json should not expect to be able to dump an EntryPoint
- """
- with self.assertRaises(Exception):
- with warnings.catch_warnings(record=True):
- json.dumps(self.ep)
-
def test_module(self):
assert self.ep.module == 'value'