File tree 2 files changed +8
-2
lines changed
pytest-server-fixtures/pytest_server_fixtures 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
2
2
## Changelog
3
3
4
- ### 1.6.2 (Unreleased)
4
+ ### 1.7.0
5
+ * pytest-server-fixtures: if host not defined, use localhost
6
+
7
+ ### 1.6.2 (2019-02-21)
5
8
* pytest-server-fixtures: suppress stacktrace if kill() is called
6
9
* pytest-server-fixtures: fix random port logic in TestServerV2
7
10
Original file line number Diff line number Diff line change @@ -35,7 +35,10 @@ class FixtureConfig(Config):
35
35
)
36
36
37
37
# Default values for system resource locations - patch this to change defaults
38
- DEFAULT_SERVER_FIXTURES_HOSTNAME = socket .gethostbyname (socket .gethostname ())
38
+ try :
39
+ DEFAULT_SERVER_FIXTURES_HOSTNAME = socket .gethostbyname (socket .gethostname ())
40
+ except socket .gaierror :
41
+ DEFAULT_SERVER_FIXTURES_HOSTNAME = '127.0.0.1'
39
42
DEFAULT_SERVER_FIXTURES_SESSION_ID = get_random_id (SESSION_ID_LEN )
40
43
DEFAULT_SERVER_FIXTURES_DISABLE_HTTP_PROXY = True
41
44
DEFAULT_SERVER_FIXTURES_SERVER_CLASS = 'thread'
You can’t perform that action at this time.
0 commit comments