[TEST] Update check-testfiles to python3

The CircleCI golang image does not contain Python 2 anymore.
This commit is contained in:
Matthias Schiffer 2021-10-02 17:36:18 +02:00 committed by genofire
parent 552b84f630
commit 2c0b3c74fc
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# checks if every desired package has test files # checks if every desired package has test files
import os import os
@ -15,7 +15,7 @@ for root, dirs, files in os.walk("."):
continue continue
# source files but not test files? # source files but not test files?
if len(filter(source_re.match, files)) > 0 and len(filter(test_re.match, files)) == 0: if len(list(filter(source_re.match, files))) > 0 and len(list(filter(test_re.match, files))) == 0:
print("no test files for {}".format(root)) print("no test files for {}".format(root))
missing = True missing = True