Skip to content

Commit

Permalink
Windows: mark failing tests for Python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
bkpoon committed Aug 17, 2019
1 parent 3307261 commit a8db867
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 7 deletions.
21 changes: 18 additions & 3 deletions iotbx/run_tests.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from __future__ import absolute_import, division, print_function
from libtbx import test_utils
import sys
import libtbx.load_env

tst_list = (
tst_list_base = [
"$D/regression/tst_wildcard.py",
"$D/regression/tst_simple_parser.py",
"$D/regression/tst_phil.py",
Expand Down Expand Up @@ -63,7 +64,6 @@
"$D/examples/tst_mtz_free_flipper.py",
"$D/regression/tst_reflection_file_utils.py",
"$D/detectors/tst_adsc.py",
"$D/detectors/tst_debug_write.py",
"$D/detectors/tst_detectors.py",
"$D/xplor/tst_xplormap.py",
["$D/regression/tst_phases.py", "P31"],
Expand Down Expand Up @@ -110,7 +110,22 @@
"$D/bioinformatics/test/tst_ebi_wu_blast_xml.py",
"$D/bioinformatics/test/tst_ncbi_blast_xml.py",
"$D/regression/tst_cif_as_pdb_1atom.py",
)
]

# failing tests on Windows, Python 2.7
tst_list_windows_fail = [
"$D/detectors/tst_debug_write.py",
]

tst_list_fail = list()
if sys.platform == 'win32':
tst_list_fail = tst_list_windows_fail
else:
tst_list_base += tst_list_windows_fail

# final lists
tst_list = tst_list_base
tst_list_expected_failures = tst_list_fail

def run():
build_dir = libtbx.env.under_build("iotbx")
Expand Down
24 changes: 20 additions & 4 deletions libtbx/run_tests.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from __future__ import absolute_import, division, print_function
from libtbx import test_utils
import sys
import libtbx.load_env

tst_list = (
tst_list_base = [
"$D/metric_prefixes.py",
"$D/tst_utils.py",
"$D/test_utils/__init__.py",
Expand Down Expand Up @@ -35,12 +36,27 @@
"$D/tst_citations.py",
"$D/tst_python_code_parsing.py",
"$D/tst_representation.py",
"$D/tst_runtime_utils.py",
# "$D/tst_xmlrpc_utils.py", # This test is failing
"$D/tst_python3_regression.py",
"$D/tst_find_unused_imports.py",
"$D/tst_program_template.py",
)
]

# generally failing tests
tst_list_fail = [
"$D/tst_xmlrpc_utils.py",
]
# failing tests on Windows, Python 2.7
tst_list_windows_fail = [
"$D/tst_runtime_utils.py",
]
if sys.platform == 'win32':
tst_list_fail += tst_list_windows_fail
else:
tst_list_base += tst_list_windows_fail

# final lists
tst_list = tst_list_base
tst_list_expected_failures = tst_list_fail

def run():
build_dir = None
Expand Down

0 comments on commit a8db867

Please sign in to comment.