diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2018-06-01 23:16:43 -0400 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2018-06-01 23:16:43 -0400 |
commit | f5534065055cfb426da9cfee37917c15948dd66b (patch) | |
tree | fdb3e6622c8a4be30aa6aa19f797c10d5fa5eb69 /tests/xferinfo_cb_test.py | |
parent | 2ed501d1a6bc61458795320083f88bd81c4b2b6c (diff) | |
download | pycurl-f5534065055cfb426da9cfee37917c15948dd66b.tar.gz |
Windows has no localhost now
Diffstat (limited to 'tests/xferinfo_cb_test.py')
-rw-r--r-- | tests/xferinfo_cb_test.py | 3 |
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() |