Issue #10347: ignore leading test count ("[  1/340]") when using the -f option to regrtest.
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 2d9cac2..9eecd1d 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -424,7 +424,9 @@
     if fromfile:
         tests = []
         fp = open(os.path.join(support.SAVEDCWD, fromfile))
+        count_pat = re.compile(r'\[\s*\d+/\s*\d+\]')
         for line in fp:
+            line = count_pat.sub('', line)
             guts = line.split() # assuming no test has whitespace in its name
             if guts and not guts[0].startswith('#'):
                 tests.extend(guts)