From 257ef230c4b4c42a3374d0a5bc620c68d579e0fd Mon Sep 17 00:00:00 2001 From: Davide Brunato Date: Thu, 17 Oct 2019 10:50:24 +0200 Subject: [PATCH 1/2] Update test_resources.py --- xmlschema/tests/test_resources.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xmlschema/tests/test_resources.py b/xmlschema/tests/test_resources.py index f5dbd5d..2519be2 100644 --- a/xmlschema/tests/test_resources.py +++ b/xmlschema/tests/test_resources.py @@ -14,6 +14,7 @@ This module runs tests concerning resources. """ import unittest import os +import platform try: from pathlib import PureWindowsPath, PurePath @@ -22,9 +23,9 @@ except ImportError: from xmlschema import ( fetch_namespaces, fetch_resource, normalize_url, fetch_schema, fetch_schema_locations, - load_xml_resource, XMLResource, XMLSchemaURLError + load_xml_resource, XMLResource, XMLSchemaURLError, XMLSchema ) -from xmlschema.tests import casepath +from xmlschema.tests import SKIP_REMOTE_TESTS, casepath from xmlschema.compat import urlopen, urlsplit, uses_relative, StringIO from xmlschema.etree import ElementTree, PyElementTree, lxml_etree, \ etree_element, py_etree_element @@ -44,6 +45,7 @@ class TestResources(unittest.TestCase): @classmethod def setUpClass(cls): + cls.schema_class = XMLSchema cls.vh_dir = casepath('examples/vehicles') cls.vh_xsd_file = casepath('examples/vehicles/vehicles.xsd') cls.vh_xml_file = casepath('examples/vehicles/vehicles.xml') From 4b7b16a750052e1bc23fc13744e784521229dfdf Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Thu, 14 Nov 2019 23:01:40 +0700 Subject: [PATCH 2/2] setup.py: Add setup-requires --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 603a73e..fd93f00 100755 --- a/setup.py +++ b/setup.py @@ -39,6 +39,7 @@ class InstallCommand(install): setup( name='xmlschema', version='1.0.15', + setup_requires=['elementpath~=1.3.0'], install_requires=['elementpath~=1.3.0'], packages=['xmlschema'], include_package_data=True,