Kaydet (Commit) 98de5340 authored tarafından Victor Stinner's avatar Victor Stinner

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.
üst e055b889
from test.libregrtest.cmdline import _parse_args, RESOURCE_NAMES
This diff is collapsed.
This diff is collapsed.
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment