From 0e165464f651af60371226bb826faeba9ca978f2 Mon Sep 17 00:00:00 2001 From: John Lyu Date: Sun, 15 Sep 2024 14:59:20 +0800 Subject: [PATCH] fix platform check --- tests/test_convert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_convert.py b/tests/test_convert.py index da333c6..4265aa0 100644 --- a/tests/test_convert.py +++ b/tests/test_convert.py @@ -1,5 +1,5 @@ -import os from pathlib import Path +from sys import platform import pytest @@ -26,7 +26,7 @@ class TestConvertPDF: def test_to_pdf(self, document_name, filename, use, execute, no_input): # skip this test if os is osx and use is latex - if use == "latex" and os.uname().system == "Darwin": + if use == "latex" and platform == "darwin": pytest.skip("Skip test for latex on osx") convert( filename,