From 6b7f06e3b2a1003a4f5eb0cc673a69aad2b37391 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Wed, 15 Feb 2017 15:06:53 -0800 Subject: [PATCH] escape backslash in test string --- 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 38682b4..b082b5c 100644 --- a/tests/test_proxy.py +++ b/tests/test_proxy.py @@ -161,7 +161,7 @@ class MainTestCase(utils.TestCase): self.assertEquals(int(str(e.exception)), 2) self.assertEquals(sys.stdout.getvalue(), '') - expected = 'error: Invalid proxy. Must be in format https://user:pass@host:port or socks5://user:pass@host:port or domain\user:pass.' + expected = 'error: Invalid proxy. Must be in format https://user:pass@host:port or socks5://user:pass@host:port or domain\\user:pass.' self.assertIn(expected, sys.stderr.getvalue()) log_output = u("\n").join([u(' ').join(x) for x in logs.actual()])