diff options
author | tlacombe <lacombe1993@gmail.com> | 2020-03-31 12:53:42 +0200 |
---|---|---|
committer | tlacombe <lacombe1993@gmail.com> | 2020-03-31 12:53:42 +0200 |
commit | e6c21aa957bbf66854f31824cd4313c61f7ea9fc (patch) | |
tree | 091c246f585e5836a2b1868414227d3d12938eaa /src/python/test/test_cubical_complex.py | |
parent | dae83f0907a5bd94cb483ad0f54755da2d49fb75 (diff) | |
parent | 2f46606b406aafc69e37a68dca33e1858ab7b817 (diff) |
merged master
Diffstat (limited to 'src/python/test/test_cubical_complex.py')
-rwxr-xr-x | src/python/test/test_cubical_complex.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/python/test/test_cubical_complex.py b/src/python/test/test_cubical_complex.py index 8c1b2600..fce4875c 100755 --- a/src/python/test/test_cubical_complex.py +++ b/src/python/test/test_cubical_complex.py @@ -10,6 +10,7 @@ from gudhi import CubicalComplex, PeriodicCubicalComplex import numpy as np +import pytest __author__ = "Vincent Rouvreau" __copyright__ = "Copyright (C) 2016 Inria" @@ -25,9 +26,8 @@ def test_empty_constructor(): def test_non_existing_perseus_file_constructor(): # Try to open a non existing file - cub = CubicalComplex(perseus_file="pouetpouettralala.toubiloubabdou") - assert cub.__is_defined() == False - assert cub.__is_persistence_defined() == False + with pytest.raises(FileNotFoundError): + cub = CubicalComplex(perseus_file="pouetpouettralala.toubiloubabdou") def test_dimension_or_perseus_file_constructor(): |