Skip ElementTree import test with external process on Windows platform

This commit is contained in:
Davide Brunato 2019-11-06 11:49:09 +01:00
parent b8ccfac6f1
commit d0f3a0f6c8
1 changed files with 2 additions and 0 deletions

View File

@ -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 '.'