From 76dc323ec5eefdd9f88797fdf5f849b3f58fdf55 Mon Sep 17 00:00:00 2001 From: David Carter <107918422+dcsynteny@users.noreply.github.com> Date: Mon, 13 Mar 2023 16:57:27 +0000 Subject: [PATCH] Fix import of py_io The current version of this import makes interrogate fail with an ImportError because there is no definition of "io" in py.py, with interrogate==1.5.0 and py==1.11.0: ``` ImportError: cannot import name 'io' from 'py' ``` --- src/interrogate/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interrogate/utils.py b/src/interrogate/utils.py index 2b2c774..3fb000f 100644 --- a/src/interrogate/utils.py +++ b/src/interrogate/utils.py @@ -12,7 +12,7 @@ import colorama import tabulate -from py import io as py_io +import _pytest._io as py_io IS_WINDOWS = sys.platform == "win32"