8000 Remove error-prone text comparison in exception test by filmor · Pull Request #854 · pythonnet/pythonnet · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/tests/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,6 @@ def test_str_of_exception():
with pytest.raises(FormatException) as cm:
Convert.ToDateTime('this will fail')

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


def test_python_compat_of_managed_exceptions():
"""Test managed exceptions compatible with Python's implementation"""
Expand Down
0