summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2021-05-02 21:42:56 +0200
committerMarc Mueller <30130371+cdce8p@users.noreply.github.com>2021-05-02 21:42:56 +0200
commitb7decf78584d00412ce8a52da34a5d5133690b3d (patch)
tree2124676f3f3e8514db36ef6d4ee3aca050fd5ac1
parent4cca9a535cea3fd858636120c07502ad37a46803 (diff)
downloadpep8-b7decf78584d00412ce8a52da34a5d5133690b3d.tar.gz
Fix testsuite
-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())