summaryrefslogtreecommitdiff
path: root/testsuite/support.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2021-05-02 12:53:02 -0700
committerGitHub <noreply@github.com>2021-05-02 12:53:02 -0700
commit61138ca629242a998b495ce05b5cd25df2429900 (patch)
tree8413811bb82ca17496f4c842485278807f979edf /testsuite/support.py
parentc4460cb9dffbd9b7ee000dc31388d5f45fe484a0 (diff)
parent91fc81764a347797b79dfe6fa901a77b63d87473 (diff)
downloadpep8-61138ca629242a998b495ce05b5cd25df2429900.tar.gz
Merge pull request #989 from cdce8p/whitespace-match-false-positive
Fix false-positive E211 with match and case
Diffstat (limited to 'testsuite/support.py')
-rw-r--r--testsuite/support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/support.py b/testsuite/support.py
index 8241a92..eb8b443 100644
--- a/testsuite/support.py
+++ b/testsuite/support.py
@@ -169,7 +169,7 @@ def init_tests(pep8style):
def run_tests(filename):
"""Run all the tests from a file."""
# Skip tests meant for higher versions of python
- ver_match = re.search(r'python(\d)(\d)?\.py$', filename)
+ ver_match = re.search(r'python(\d)(\d+)?\.py$', filename)
if ver_match:
test_against_version = tuple(int(val or 0)
for val in ver_match.groups())