diff options
Diffstat (limited to 'test/Java')
-rw-r--r-- | test/Java/Java-1.4.py | 2 | ||||
-rw-r--r-- | test/Java/Java-1.5.py | 2 | ||||
-rw-r--r-- | test/Java/Java-1.6.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/Java/Java-1.4.py b/test/Java/Java-1.4.py index c1eb5e5..4076783 100644 --- a/test/Java/Java-1.4.py +++ b/test/Java/Java-1.4.py @@ -350,7 +350,7 @@ def classes_must_match(dir, expect): def classes_must_not_exist(dir, expect): global failed - present = list(filter(os.path.exists, expect)) + present = [path for path in expect if os.path.exists(path)] if present: sys.stderr.write("Found the following unexpected class files in '%s' after cleaning:\n" % dir) for c in present: diff --git a/test/Java/Java-1.5.py b/test/Java/Java-1.5.py index 0f93a00..6659a16 100644 --- a/test/Java/Java-1.5.py +++ b/test/Java/Java-1.5.py @@ -346,7 +346,7 @@ def classes_must_match(dir, expect): def classes_must_not_exist(dir, expect): global failed - present = list(filter(os.path.exists, expect)) + present = [path for path in expect if os.path.exists(path)] if present: sys.stderr.write("Found the following unexpected class files in '%s' after cleaning:\n" % dir) for c in present: diff --git a/test/Java/Java-1.6.py b/test/Java/Java-1.6.py index bd7a48f..be46919 100644 --- a/test/Java/Java-1.6.py +++ b/test/Java/Java-1.6.py @@ -346,7 +346,7 @@ def classes_must_match(dir, expect): def classes_must_not_exist(dir, expect): global failed - present = list(filter(os.path.exists, expect)) + present = [path for path in expect if os.path.exists(path)] if present: sys.stderr.write("Found the following unexpected class files in '%s' after cleaning:\n" % dir) for c in present: |