Work around https://github.com/travis-ci/travis-ci/issues/3080 as pypy throws if 'ping' can't be executed
This commit is contained in:
parent
0f6d9be4e2
commit
f7d6406d38
1 changed files with 5 additions and 0 deletions
|
|
@ -2434,6 +2434,11 @@ class EmbedRasters(unittest.TestCase):
|
|||
import os
|
||||
import platform
|
||||
|
||||
# work around https://github.com/travis-ci/travis-ci/issues/3080 as pypy throws if 'ping' can't be executed
|
||||
import distutils.spawn
|
||||
if not distutils.spawn.find_executable('ping'):
|
||||
return -1
|
||||
|
||||
system = platform.system().lower()
|
||||
ping_count = '-n' if system == 'windows' else '-c'
|
||||
dev_null = 'NUL' if system == 'windows' else '/dev/null'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue