From 8f2b29a1f99101455716a85e8d1397f797f0774b Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 24 Nov 2015 21:27:20 +0100 Subject: [PATCH] tests: Make it possible to load httpbin root. --- tests/integration/quteprocess.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/integration/quteprocess.py b/tests/integration/quteprocess.py index 284b6cfd1..2f18b1ece 100644 --- a/tests/integration/quteprocess.py +++ b/tests/integration/quteprocess.py @@ -181,7 +181,9 @@ class QuteProc(testprocess.Process): if path.startswith('about:') or path.startswith('qute:'): return path else: - return 'http://localhost:{}/{}'.format(self._httpbin.port, path) + return 'http://localhost:{}/{}'.format( + self._httpbin.port, + path if path != '/' else '') def after_test(self): bad_msgs = [msg for msg in self._data