summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_regrtest.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-09-26 07:43:45 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-09-26 07:43:45 (GMT)
commit98de5340d4d782b2a0595c9fa729460a2c1b4b91 (patch)
tree76aea9b41d85a626dc45324779b4a492a47a0bd5 /Lib/test/test_regrtest.py
parente055b889373893d6f34e5c0eca98b6231cd2a913 (diff)
downloadcpython-98de5340d4d782b2a0595c9fa729460a2c1b4b91.zip
cpython-98de5340d4d782b2a0595c9fa729460a2c1b4b91.tar.gz
cpython-98de5340d4d782b2a0595c9fa729460a2c1b4b91.tar.bz2
Issue #25220: Create Lib/test/libregrtest/
Start to split regrtest.py into smaller parts with the creation of Lib/test/libregrtest/cmdline.py: code to handle the command line, especially parsing command line arguments. This part of the code is tested by test_regrtest.
Diffstat (limited to 'Lib/test/test_regrtest.py')
-rw-r--r--Lib/test/test_regrtest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py
index a398a4f..cf4b84f 100644
--- a/Lib/test/test_regrtest.py
+++ b/Lib/test/test_regrtest.py
@@ -7,7 +7,7 @@ import faulthandler
import getopt
import os.path
import unittest
-from test import regrtest, support
+from test import regrtest, support, libregrtest
class ParseArgsTestCase(unittest.TestCase):
@@ -148,7 +148,7 @@ class ParseArgsTestCase(unittest.TestCase):
self.assertEqual(ns.use_resources, ['gui', 'network'])
ns = regrtest._parse_args([opt, 'gui,none,network'])
self.assertEqual(ns.use_resources, ['network'])
- expected = list(regrtest.RESOURCE_NAMES)
+ expected = list(libregrtest.RESOURCE_NAMES)
expected.remove('gui')
ns = regrtest._parse_args([opt, 'all,-gui'])
self.assertEqual(ns.use_resources, expected)