Fix slow numpy/scipy installs on pypy3

This commit is contained in:
Roman Mogylatov 2021-03-08 16:28:45 -05:00
parent 150fd1fed3
commit 0d80f4834a
2 changed files with 19 additions and 6 deletions

View File

@ -1,6 +1,7 @@
"""Test module for wiring."""
from decimal import Decimal
import sys
from typing import Callable
from dependency_injector import providers
@ -132,11 +133,12 @@ def test_container(container: Container = Provide[Container]):
# Import tests
import numpy # noqa
from numpy import * # noqa
if 'pypy' not in sys.version.lower():
import numpy # noqa
from numpy import * # noqa
import scipy # noqa
from scipy import * # noqa
import scipy # noqa
from scipy import * # noqa
import builtins # noqa
from builtins import * # noqa
import builtins # noqa
from builtins import * # noqa

11
tox.ini
View File

@ -64,6 +64,17 @@ extras=
commands=
python -m unittest discover -s tests/unit -p test_*_py2_py3.py
[testenv:pypy3]
deps=
httpx
fastapi
extras=
yaml
flask
commands=
python -m unittest discover -s tests/unit -p test_*_py2_py3.py
[testenv:pylint]
deps=
pylint