Skip to content

Commit 6034640

Browse files
authored
Remove error-prone text comparison in exception test (pythonnet#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

Lines changed: 0 additions & 6 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy