mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
tests: Fix a Windows-only test
This commit is contained in:
parent
7d218e5522
commit
2279d48807
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
import platform
|
import platform
|
||||||
|
import subprocess
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -19,4 +20,4 @@ def test_get_resource_path():
|
||||||
@pytest.mark.skipif(platform.system() != "Windows", reason="Windows-specific")
|
@pytest.mark.skipif(platform.system() != "Windows", reason="Windows-specific")
|
||||||
def test_get_subprocess_startupinfo():
|
def test_get_subprocess_startupinfo():
|
||||||
startupinfo = util.get_subprocess_startupinfo()
|
startupinfo = util.get_subprocess_startupinfo()
|
||||||
self.assertIsInstance(startupinfo, subprocess.STARTUPINFO)
|
assert isinstance(startupinfo, subprocess.STARTUPINFO)
|
||||||
|
|
Loading…
Reference in a new issue