From 2279d48807be826923ea1a08b5182709ee973f4d Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Wed, 19 Oct 2022 18:45:01 +0300 Subject: [PATCH] tests: Fix a Windows-only test --- tests/test_util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_util.py b/tests/test_util.py index 13cefe2..953259c 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -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)