tests: Use urllib to load redirect-later-continue.
This might avoid the EPROTOTYPE bug on OS X. See #1183.
This commit is contained in:
parent
b3e4ac8043
commit
1e43b882ae
@ -25,6 +25,7 @@ import json
|
|||||||
import os.path
|
import os.path
|
||||||
import logging
|
import logging
|
||||||
import collections
|
import collections
|
||||||
|
import urllib.request
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import yaml
|
import yaml
|
||||||
@ -191,6 +192,13 @@ def fill_clipboard(qtbot, qapp, httpbin, what, content):
|
|||||||
clipboard.setText(content, mode)
|
clipboard.setText(content, mode)
|
||||||
|
|
||||||
|
|
||||||
|
@bdd.when("I continue the redirect")
|
||||||
|
def continue_redirect(httpbin):
|
||||||
|
url = 'http://localhost:{}/custom/redirect-later-continue'.format(
|
||||||
|
httpbin.port)
|
||||||
|
urllib.request.urlopen(url)
|
||||||
|
|
||||||
|
|
||||||
## Then
|
## Then
|
||||||
|
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ Feature: Various utility commands.
|
|||||||
And I wait for "emitting: cur_load_status_changed('loading') (tab *)" in the log
|
And I wait for "emitting: cur_load_status_changed('loading') (tab *)" in the log
|
||||||
And I wait 1s
|
And I wait 1s
|
||||||
And I run :stop
|
And I run :stop
|
||||||
And I open custom/redirect-later-continue in a new tab
|
And I continue the redirect
|
||||||
And I wait 1s
|
And I wait 1s
|
||||||
Then the unordered requests should be:
|
Then the unordered requests should be:
|
||||||
custom/redirect-later-continue
|
custom/redirect-later-continue
|
||||||
|
Loading…
Reference in New Issue
Block a user