Skip to content

Commit

Permalink
Fix GitHub CI: ininstance check
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardkaindl committed Nov 15, 2024
1 parent 88ab064 commit ce7105e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_pci.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 169 in tests/test_pci.py

View workflow job for this annotation

GitHub Actions / test (3.13, ubuntu-22.04)

pylint E0606: possibly-used-before-assignment

Possibly using variable 'FakeProcess' before assignment
fp.register_subprocess(["lspci", "-mn"], stdout=fake_data.read())
return PCIDevices()

0 comments on commit ce7105e

Please sign in to comment.