1
changelog/316.bugfix
Normal file
1
changelog/316.bugfix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Workaround cpu detection on Travis CI
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import os
|
||||||
|
|
||||||
import py
|
import py
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
@@ -7,6 +9,9 @@ def parse_numprocesses(s):
|
|||||||
try:
|
try:
|
||||||
from os import sched_getaffinity
|
from os import sched_getaffinity
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
if os.environ.get('TRAVIS') == 'true':
|
||||||
|
# workaround https://bitbucket.org/pypy/pypy/issues/2375
|
||||||
|
return 2
|
||||||
try:
|
try:
|
||||||
from os import cpu_count
|
from os import cpu_count
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|||||||
Reference in New Issue
Block a user