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""" 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