tests: Fix a Windows-only test

This commit is contained in:
Alex Pyrgiotis 2022-10-19 18:45:01 +03:00
parent 7d218e5522
commit 2279d48807
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -1,4 +1,5 @@
import platform
import subprocess
from pathlib import Path
import pytest
@ -19,4 +20,4 @@ def test_get_resource_path():
@pytest.mark.skipif(platform.system() != "Windows", reason="Windows-specific")
def test_get_subprocess_startupinfo():
startupinfo = util.get_subprocess_startupinfo()
self.assertIsInstance(startupinfo, subprocess.STARTUPINFO)
assert isinstance(startupinfo, subprocess.STARTUPINFO)