File tree 1 file changed +4
-2
lines changed 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 21
21
import pytest
22
22
23
23
import db_dtypes
24
+ import db_dtypes .json
25
+
24
26
25
27
# Check for minimum Pandas version.
26
28
pytest .importorskip ("pandas" , minversion = "1.5.0" )
@@ -251,7 +253,7 @@ def cleanup_json_module_for_reload():
251
253
252
254
# Remove the module from sys.modules so importlib.reload which will happen
253
255
# after the yield statement will re-execute it
254
- if json_module_name in sys .modules :
256
+ if json_module_name in sys .modules : # pragma: NO COVER
255
257
del sys .modules [json_module_name ]
256
258
257
259
yield # Run the test that uses this fixture
@@ -260,7 +262,7 @@ def cleanup_json_module_for_reload():
260
262
# This helps isolate from other tests that might import db_dtypes.json
261
263
if original_module :
262
264
sys .modules [json_module_name ] = original_module
263
- elif json_module_name in sys .modules :
265
+ elif json_module_name in sys .modules : # pragma: NO COVER
264
266
# If the test re-imported it but it wasn't there originally, remove it
265
267
del sys .modules [json_module_name ]
266
268
You can’t perform that action at this time.
0 commit comments