Don't test Python 2

This commit is contained in:
Kodi Arfer 2019-05-20 14:47:08 -04:00
parent ea872c3983
commit b130e3284e
2 changed files with 2 additions and 5 deletions

View File

@ -2,12 +2,10 @@ sudo: false
dist: xenial dist: xenial
language: python language: python
python: python:
- "2.7"
- "3.5" - "3.5"
- "3.6" - "3.6"
- "3.7" - "3.7"
- 3.8-dev - 3.8-dev
- pypy2.7-6.0
- pypy3.5-6.0 - pypy3.5-6.0
install: install:
- pip install -r requirements-travis.txt - pip install -r requirements-travis.txt

View File

@ -4,7 +4,7 @@ import importlib
import py import py
import pytest import pytest
import hy import hy
from hy._compat import PY3, PY36, PY38 from hy._compat import PY36, PY38
NATIVE_TESTS = os.path.join("", "tests", "native_tests", "") NATIVE_TESTS = os.path.join("", "tests", "native_tests", "")
@ -12,8 +12,7 @@ _fspath_pyimport = py.path.local.pyimport
def pytest_ignore_collect(path, config): def pytest_ignore_collect(path, config):
return (("py3_only" in path.basename and not PY3) or return (("py36_only" in path.basename and not PY36) or
("py36_only" in path.basename and not PY36) or
("py38_only" in path.basename and not PY38) or None) ("py38_only" in path.basename and not PY38) or None)