From bd4e3ab91f2d5f8570120d492b3ed345e84268c6 Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Fri, 1 Sep 2023 07:43:31 +0200 Subject: [PATCH] Make --no-mmlibs --no-undo the default These tests seem unsupported by modern PyMOL versions (like 2.5.6), see https://github.com/schrodinger/pymol-testing/issues/9 Add `--with-mmlibs` and `--with-undo` options to enable these tests. --- testing/testing.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/testing/testing.py b/testing/testing.py index 1b6ba1048..eea78ba5c 100644 --- a/testing/testing.py +++ b/testing/testing.py @@ -104,8 +104,10 @@ def tupleize_version(strversion): parser.add_argument('filenames', nargs='*', default=[]) parser.add_argument('--out', default=sys.stdout) parser.add_argument('--offline', action='store_true') - parser.add_argument('--no-mmlibs', action='store_true') - parser.add_argument('--no-undo', action='store_true') + parser.add_argument('--no-mmlibs', action='store_true', default=True) + parser.add_argument('--with-mmlibs', action='store_false', dest='no_mmlibs') + parser.add_argument('--no-undo', action='store_true', default=True) + parser.add_argument('--with-undo', action='store_false', dest='no_undo') parser.add_argument('--verbosity', type=int, default=2) have_dash_dash = __file__.startswith(sys.argv[0]) or '--run' in sys.argv