Skip to content

Commit

Permalink
Don't fail tests when xmlschema is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
jix committed Jun 3, 2022
1 parent d398a3c commit 80eacf3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/junit/validate_junit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
from xmlschema import XMLSchema, XMLSchemaValidationError
try:
from xmlschema import XMLSchema, XMLSchemaValidationError
except ImportError:
import os
if "NOSKIP" not in os.environ.get("MAKEFLAGS", ""):
print()
print("SKIPPING python library xmlschema not found, skipping JUnit output validation")
print()
exit(0)

import argparse

def main():
Expand Down

0 comments on commit 80eacf3

Please sign in to comment.