diff options
| author | Yury Selivanov <yury@magic.io> | 2016-09-09 18:14:59 (GMT) |
|---|---|---|
| committer | Yury Selivanov <yury@magic.io> | 2016-09-09 18:14:59 (GMT) |
| commit | d04e417b1e892f35a26b23b7be6e68ea3cc945f5 (patch) | |
| tree | 00302fbf84252012a45d1b0d526cb0f2257accc1 | |
| parent | feea6e7bcf1735486a0a53c534b3680e884a8ec6 (diff) | |
| download | cpython-d04e417b1e892f35a26b23b7be6e68ea3cc945f5.zip cpython-d04e417b1e892f35a26b23b7be6e68ea3cc945f5.tar.gz cpython-d04e417b1e892f35a26b23b7be6e68ea3cc945f5.tar.bz2 | |
tests: use subTest in test_unparse.test_files
| -rw-r--r-- | Lib/test/test_tools/test_unparse.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_tools/test_unparse.py b/Lib/test/test_tools/test_unparse.py index 517f261..ed0001a 100644 --- a/Lib/test/test_tools/test_unparse.py +++ b/Lib/test/test_tools/test_unparse.py @@ -293,8 +293,9 @@ class DirectoryTestCase(ASTTestCase): print(f'Skipping {filename}: see issue 27921') continue - source = read_pyfile(filename) - self.check_roundtrip(source) + with self.subTest(filename=filename): + source = read_pyfile(filename) + self.check_roundtrip(source) if __name__ == '__main__': |
