Skip to content

Commit 50055bc

Browse files
committed
Call py.test directly
1 parent 70d075d commit 50055bc

2 files changed

Lines changed: 2 additions & 18 deletions

File tree

‎.travis.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ python:
77
install:
88
- pip install -e ".[test]"
99
script:
10-
- python setup.py test
10+
- py.test

‎setup.py‎

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,10 @@
66
Python Data Validation for Humans™.
77
"""
88

9-
from setuptools import setup, Command, find_packages
10-
import subprocess
9+
from setuptools import setup, find_packages
1110
import sys
1211

1312

14-
class PyTest(Command):
15-
user_options = []
16-
17-
def initialize_options(self):
18-
pass
19-
20-
def finalize_options(self):
21-
pass
22-
23-
def run(self):
24-
errno = subprocess.call(['py.test'])
25-
raise SystemExit(errno)
26-
27-
2813
PY3 = sys.version_info[0] == 3
2914

3015

@@ -57,7 +42,6 @@ def run(self):
5742
if sys.version_info[0] == 2 and sys.version_info[1] < 7 else ''
5843
],
5944
extras_require=extras_require,
60-
cmdclass={'test': PyTest},
6145
classifiers=[
6246
'Environment :: Web Environment',
6347
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)