diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-02-12 10:24:25 +0100 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-02-12 10:24:25 +0100 |
commit | 73ad191a7dee054a58e9823c84dce9f1e71995f4 (patch) | |
tree | d3ffa37354694a06332470916924e6e990201b9b /src/python/test/test_cover_complex.py | |
parent | 2eb23726256af164282830b21561b11db9bdde39 (diff) |
Fix tests according to exception management
Diffstat (limited to 'src/python/test/test_cover_complex.py')
-rwxr-xr-x | src/python/test/test_cover_complex.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/python/test/test_cover_complex.py b/src/python/test/test_cover_complex.py index 32bc5a26..260f6a5c 100755 --- a/src/python/test/test_cover_complex.py +++ b/src/python/test/test_cover_complex.py @@ -9,6 +9,7 @@ """ from gudhi import CoverComplex +import pytest __author__ = "Vincent Rouvreau" __copyright__ = "Copyright (C) 2018 Inria" @@ -24,7 +25,8 @@ def test_empty_constructor(): def test_non_existing_file_read(): # Try to open a non existing file cover = CoverComplex() - assert cover.read_point_cloud("pouetpouettralala.toubiloubabdou") == False + with pytest.raises(FileNotFoundError): + cover.read_point_cloud("pouetpouettralala.toubiloubabdou") def test_files_creation(): |