diff options
author | Frank Harrison <frank@doublethefish.com> | 2020-04-07 17:52:16 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2020-04-19 16:42:22 +0200 |
commit | 23c4ae86b630b2dc8e6bcc582250740a5438daa7 (patch) | |
tree | da7f484fecd275468d0ca0ee204977b032ae71b0 /tests/test_import_graph.py | |
parent | 7a45cb968117d8090d3457bb535d0e26902c82d0 (diff) | |
download | pylint-git-23c4ae86b630b2dc8e6bcc582250740a5438daa7.tar.gz |
Handles failing file-delete when skipping import_graph tests
We skip these tests if/when we run benchmarking only
(force sha update)
Diffstat (limited to 'tests/test_import_graph.py')
-rw-r--r-- | tests/test_import_graph.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_import_graph.py b/tests/test_import_graph.py index d7b009693..2e5d0a567 100644 --- a/tests/test_import_graph.py +++ b/tests/test_import_graph.py @@ -23,7 +23,11 @@ from pylint.lint import PyLinter def dest(): dest = "dependencies_graph.dot" yield dest - os.remove(dest) + try: + os.remove(dest) + except FileNotFoundError: + # file may not have been created if tests inside fixture skipped + pass def test_dependencies_graph(dest): |