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 pytest
|
||||
|
||||
@@ -7,6 +9,9 @@ def parse_numprocesses(s):
|
||||
try:
|
||||
from os import sched_getaffinity
|
||||
except ImportError:
|
||||
if os.environ.get('TRAVIS') == 'true':
|
||||
# workaround https://bitbucket.org/pypy/pypy/issues/2375
|
||||
return 2
|
||||
try:
|
||||
from os import cpu_count
|
||||
except ImportError:
|
||||
|
||||
Reference in New Issue
Block a user