Skip to content

Commit 6034640

Browse files
authored
Remove error-prone text comparison in exception test (#854)
1 parent 817fe61 commit 6034640

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/tests/test_exceptions.py

-6
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,6 @@ def test_str_of_exception():
270270
with pytest.raises(FormatException) as cm:
271271
Convert.ToDateTime('this will fail')
272272

273-
e = cm.value
274-
# fix for international installation
275-
msg = text_type(e).encode("utf8")
276-
fnd = text_type('System.Convert.ToDateTime').encode("utf8")
277-
assert msg.find(fnd) > -1, msg
278-
279273

280274
def test_python_compat_of_managed_exceptions():
281275
"""Test managed exceptions compatible with Python's implementation"""

0 commit comments

Comments
 (0)