mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
0bdde99372
commit
c3ee09d459
@ -233,7 +233,7 @@ class TestAuth(BaseTest):
|
|||||||
if curl:
|
if curl:
|
||||||
def docurl(data, *args):
|
def docurl(data, *args):
|
||||||
cmd = [curl] + list(args) + ['http://localhost:%d/closed' % server.address[1]]
|
cmd = [curl] + list(args) + ['http://localhost:%d/closed' % server.address[1]]
|
||||||
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=open(os.devnull, 'wb'))
|
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
|
||||||
x = p.stdout.read()
|
x = p.stdout.read()
|
||||||
p.wait()
|
p.wait()
|
||||||
self.ae(x, data)
|
self.ae(x, data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user