Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
2a2bc9ce
Commit
2a2bc9ce
authored
Jan 16, 2018
by
Davis King
Browse files
Different versions of python disagree on what exception gets thrown. So just
check for any exception.
parent
99b0f687
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
tools/python/test/test_array.py
tools/python/test/test_array.py
+1
-1
tools/python/test/test_vector.py
tools/python/test/test_vector.py
+1
-1
No files found.
tools/python/test/test_array.py
View file @
2a2bc9ce
...
@@ -21,7 +21,7 @@ def test_array_init_with_number():
...
@@ -21,7 +21,7 @@ def test_array_init_with_number():
def
test_array_init_with_negative_number
():
def
test_array_init_with_negative_number
():
with
raises
(
MemoryError
):
with
raises
(
Exception
):
array
(
-
5
)
array
(
-
5
)
...
...
tools/python/test/test_vector.py
View file @
2a2bc9ce
...
@@ -78,7 +78,7 @@ def test_vector_invalid_getitem():
...
@@ -78,7 +78,7 @@ def test_vector_invalid_getitem():
def
test_vector_init_with_negative_number
():
def
test_vector_init_with_negative_number
():
with
raises
(
MemoryError
):
with
raises
(
Exception
):
vector
(
-
3
)
vector
(
-
3
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment