From 72baedd63e42e0af3ea1a26a7b151328a4dd173d Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Fri, 27 Sep 2019 15:15:37 -0500 Subject: Python 2 fix - not all exceptions have .msg under this interp version --- tests/test_proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_proxy.py b/tests/test_proxy.py index 9d707a4a..2e0b0e51 100644 --- a/tests/test_proxy.py +++ b/tests/test_proxy.py @@ -141,4 +141,4 @@ class TestProxyCommand(object): # module-time ImportErrors. So we mock the symptoms. Meh! with raises(ImportError) as info: ProxyCommand("hi!!!") - assert info.value.msg == "meh" + assert str(info.value) == "meh" -- cgit v1.2.3