fix regular expression for test files

This commit is contained in:
Rich Rauenzahn
2019-12-04 11:45:21 -08:00
committed by GitHub
parent 8a36145fa9
commit 612a4b18cf

View File

@ -18,7 +18,7 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
args = parser.parse_args(argv)
retcode = 0
test_name_pattern = 'test.*.py' if args.django else '.*_test.py'
test_name_pattern = r'test.*\.py' if args.django else r'.*_test\.py'
for filename in args.filenames:
base = os.path.basename(filename)
if (