This commit is contained in:
Kovid Goyal 2023-01-19 12:36:58 +05:30
parent 0bdde99372
commit c3ee09d459
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -233,7 +233,7 @@ class TestAuth(BaseTest):
if curl:
def docurl(data, *args):
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()
p.wait()
self.ae(x, data)