From ce7105eef3a6a58506edf47213cd095d6aecbfc6 Mon Sep 17 00:00:00 2001 From: Bernhard Kaindl Date: Fri, 15 Nov 2024 01:20:05 +0100 Subject: [PATCH] Fix GitHub CI: ininstance check --- tests/test_pci.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_pci.py b/tests/test_pci.py index 13bfc6fd..bc0aac3b 100644 --- a/tests/test_pci.py +++ b/tests/test_pci.py @@ -166,7 +166,6 @@ def test_videoclass_by_mock_calls(fp): def mock_lspci_using_open_testfile(fp): """Mock xcp.pci.PCIDevices.Popen() using open(tests/data/lspci-mn)""" with open("tests/data/lspci-mn", "rb") as fake_data: - if sys.version_info >= (3, 6): - assert isinstance(fp, FakeProcess) + assert isinstance(fp, FakeProcess) fp.register_subprocess(["lspci", "-mn"], stdout=fake_data.read()) return PCIDevices()