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:
parent
066cefcc17
commit
c50039e878
7 changed files with 21 additions and 33 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue