summaryrefslogtreecommitdiff
path: root/tests/xferinfo_cb_test.py
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2018-06-01 23:16:43 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2018-06-01 23:16:43 -0400
commitf5534065055cfb426da9cfee37917c15948dd66b (patch)
treefdb3e6622c8a4be30aa6aa19f797c10d5fa5eb69 /tests/xferinfo_cb_test.py
parent2ed501d1a6bc61458795320083f88bd81c4b2b6c (diff)
downloadpycurl-f5534065055cfb426da9cfee37917c15948dd66b.tar.gz
Windows has no localhost now
Diffstat (limited to 'tests/xferinfo_cb_test.py')
-rw-r--r--tests/xferinfo_cb_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/xferinfo_cb_test.py b/tests/xferinfo_cb_test.py
index 715374c..ada5e2d 100644
--- a/tests/xferinfo_cb_test.py
+++ b/tests/xferinfo_cb_test.py
@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
# vi:ts=4:et
+from . import localhost
import unittest
import pycurl
@@ -13,7 +14,7 @@ setup_module, teardown_module = appmanager.setup(('app', 8380))
class XferinfoCbTest(unittest.TestCase):
def setUp(self):
self.curl = util.DefaultCurl()
- self.curl.setopt(self.curl.URL, 'http://localhost:8380/long_pause')
+ self.curl.setopt(self.curl.URL, 'http://%s:8380/long_pause' % localhost)
def tearDown(self):
self.curl.close()