diff --git a/testing/testing.py b/testing/testing.py index eea78ba5c..552bc7988 100644 --- a/testing/testing.py +++ b/testing/testing.py @@ -695,6 +695,7 @@ def run_testfiles(filenames='all', verbosity=2, out=sys.stderr, **kwargs): resultclass=PyMOLTestResult, verbosity=int(verbosity)).run(suite) # Run pytest files if any + cmd.reinitialize() pytest_nfail = pytest.main(['-v', *map(str, pytest_files)]) if pytest_files else 0 while deferred_unlink: diff --git a/testing/tests/api/test_importing.py b/testing/tests/api/test_importing.py index 9ac25a520..432eef8dd 100644 --- a/testing/tests/api/test_importing.py +++ b/testing/tests/api/test_importing.py @@ -3,10 +3,12 @@ from pymol.querying import cif_get_array +@test_utils.requires_version("3.0") def test_bcif(): cmd.load(test_utils.datafile("115d.bcif.gz")) assert cmd.count_atoms() == 407 +@test_utils.requires_version("3.0") def test_bcif_array(): obj_name = "foo" cmd.set('cif_keepinmemory', 1)