Skip to content
Snippets Groups Projects
Commit a3b21333 authored by Georges Khaznadar's avatar Georges Khaznadar
Browse files

fixed an indentation error

parent a66822a0
Branches
Tags debian/1.10.0-5
No related merge requests found
Pipeline #521781 failed
...@@ -40,12 +40,12 @@ Index: python-xmlschema/tests/test_xpath.py ...@@ -40,12 +40,12 @@ Index: python-xmlschema/tests/test_xpath.py
self.assertIs(parser.schema, schema_proxy2) self.assertIs(parser.schema, schema_proxy2)
def test_get_context_method(self): def test_get_context_method(self):
+ # Internet access is not granted while a debian package is built + # Internet access is not granted while a debian package is built
+ # So we skip this test + # So we skip this test
+ import subprocess + import subprocess
+ cmd = "wget --spider --quiet http://example.com" + cmd = "wget --spider --quiet http://example.com"
+ if not subprocess.call(cmd, shell=True) == 0: + if not subprocess.call(cmd, shell=True) == 0:
+ return + return
+ +
schema_proxy = XMLSchemaProxy(self.xs1) schema_proxy = XMLSchemaProxy(self.xs1)
context = schema_proxy.get_context() context = schema_proxy.get_context()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment