From a54838601a22b7b7eed544eb85cfb6e9d6a7949b Mon Sep 17 00:00:00 2001 From: Benedikt Reinartz Date: Sat, 27 Apr 2019 19:33:12 +0200 Subject: [PATCH] Remove error-prone text comparison in exception test --- src/tests/test_exceptions.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/tests/test_exceptions.py b/src/tests/test_exceptions.py index 08b00d77d..a10d9a183 100644 --- a/src/tests/test_exceptions.py +++ b/src/tests/test_exceptions.py @@ -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"""