1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-07-02 16:58:30 +00:00

Use sys.platform instead of os.name

mypy only recognizes sys.platform
This commit is contained in:
Unrud 2022-02-01 17:53:46 +01:00
parent 066cefcc17
commit c50039e878
7 changed files with 21 additions and 33 deletions

View file

@ -219,7 +219,7 @@ class TestBaseServerRequests(BaseTest):
finally:
p.terminate()
p.wait()
if os.name == "posix":
if sys.platform != "win32":
assert p.returncode == 0
def test_command_line_interface_with_bool_options(self) -> None: