From fbb82a0875dacc8200d3f663c3286104d0a1afbf Mon Sep 17 00:00:00 2001 From: GomathiselviS Date: Fri, 24 Jul 2020 16:16:03 -0400 Subject: [vyos] Fix sanity issues (#58) [vyos] Fix sanity issues Reviewed-by: https://github.com/apps/ansible-zuul --- tests/unit/compat/mock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/unit/compat/mock.py') diff --git a/tests/unit/compat/mock.py b/tests/unit/compat/mock.py index b45d6b5c..b7df24ff 100644 --- a/tests/unit/compat/mock.py +++ b/tests/unit/compat/mock.py @@ -24,6 +24,7 @@ __metaclass__ = type Compat module for Python3.x's unittest.mock module """ import sys +import _io # Python 2.7 @@ -100,7 +101,6 @@ if sys.version_info >= (3,) and sys.version_info < (3, 4, 4): global file_spec if file_spec is None: - import _io file_spec = list( set(dir(_io.TextIOWrapper)).union(set(dir(_io.BytesIO))) -- cgit v1.2.3