We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99dd224 commit 2eeb629Copy full SHA for 2eeb629
tests/test_main.py
@@ -3,6 +3,7 @@
3
import pickle
4
import textwrap
5
import unittest
6
+import warnings
7
import importlib
8
import importlib_metadata
9
import pyfakefs.fake_filesystem_unittest as ffs
@@ -247,7 +248,8 @@ def test_json_dump(self):
247
248
json should not expect to be able to dump an EntryPoint
249
"""
250
with self.assertRaises(Exception):
- json.dumps(self.ep)
251
+ with warnings.catch_warnings(record=True):
252
+ json.dumps(self.ep)
253
254
def test_module(self):
255
assert self.ep.module == 'value'
0 commit comments