From d0f3a0f6c8b10d9bcb132596a2343d055e853ae6 Mon Sep 17 00:00:00 2001 From: Davide Brunato Date: Wed, 6 Nov 2019 11:49:09 +0100 Subject: [PATCH] Skip ElementTree import test with external process on Windows platform --- xmlschema/tests/test_etree.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xmlschema/tests/test_etree.py b/xmlschema/tests/test_etree.py index e039181..22e42a9 100644 --- a/xmlschema/tests/test_etree.py +++ b/xmlschema/tests/test_etree.py @@ -15,6 +15,7 @@ import os import importlib import sys import subprocess +import platform @unittest.skipIf(sys.version_info < (3,), "In Python 2 ElementTree is not overwritten by cElementTree") @@ -51,6 +52,7 @@ class TestElementTree(unittest.TestCase): self.assertIs(importlib.import_module('xml.etree.ElementTree'), ElementTree) self.assertIs(xmlschema_etree.ElementTree, ElementTree) + @unittest.skipIf(platform.system() == 'Windows', "Run only for UNIX based systems.") def test_element_tree_import_script(self): test_dir = os.path.dirname(__file__) or '.'