escape backslash in test string
This commit is contained in:
parent
1fd6169f53
commit
6b7f06e3b2
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ class MainTestCase(utils.TestCase):
|
||||||
|
|
||||||
self.assertEquals(int(str(e.exception)), 2)
|
self.assertEquals(int(str(e.exception)), 2)
|
||||||
self.assertEquals(sys.stdout.getvalue(), '')
|
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())
|
self.assertIn(expected, sys.stderr.getvalue())
|
||||||
|
|
||||||
log_output = u("\n").join([u(' ').join(x) for x in logs.actual()])
|
log_output = u("\n").join([u(' ').join(x) for x in logs.actual()])
|
||||||
|
|
Loading…
Reference in a new issue