"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "05e867784ddb873d909a9a5cce8ee0f32eb6840d"
Commit 2a2bc9ce authored by Davis King's avatar Davis King
Browse files

Different versions of python disagree on what exception gets thrown. So just

check for any exception.
parent 99b0f687
...@@ -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)
......
...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment