diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2014-06-02 21:01:29 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2014-06-02 21:01:29 (GMT) |
commit | 66f29284797c31190ad06554d9909d7ed8a894d1 (patch) | |
tree | 0388a5b7cd0084afc8ed45855bb16f0d631971e1 /Lib/test/test_decimal.py | |
parent | 8dd49fe09fc4ac3b527914a0703c0dc0429aa125 (diff) | |
download | cpython-66f29284797c31190ad06554d9909d7ed8a894d1.zip cpython-66f29284797c31190ad06554d9909d7ed8a894d1.tar.gz cpython-66f29284797c31190ad06554d9909d7ed8a894d1.tar.bz2 |
Issue #18492: Allow all resources when tests are not run by regrtest.py.
This changeset also includes cleanup allowed by this behavior change.
Diffstat (limited to 'Lib/test/test_decimal.py')
-rw-r--r-- | Lib/test/test_decimal.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py index 4b27907..8358ba6 100644 --- a/Lib/test/test_decimal.py +++ b/Lib/test/test_decimal.py @@ -5429,7 +5429,7 @@ else: all_tests.insert(0, CheckAttributes) -def test_main(arith=False, verbose=None, todo_tests=None, debug=None): +def test_main(arith=None, verbose=None, todo_tests=None, debug=None): """ Execute the tests. Runs all arithmetic tests if arith is True or if the "decimal" resource @@ -5439,7 +5439,7 @@ def test_main(arith=False, verbose=None, todo_tests=None, debug=None): init(C) init(P) global TEST_ALL, DEBUG - TEST_ALL = arith or is_resource_enabled('decimal') + TEST_ALL = arith if arith is not None else is_resource_enabled('decimal') DEBUG = debug if todo_tests is None: |