Skip to content

Commit c7b3c08

Browse files
committed
Remove outdated setup.py test invocation for pytest
See also: - http://doc.pytest.org/en/5.3.2/changelog.html#pytest-3-6-2-2018-06-20 - pytest-dev/pytest#3552
1 parent fde7f03 commit c7b3c08

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

setup.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import sys
1010

1111
from setuptools import setup
12-
from setuptools.command.test import test as TestCommand
1312

1413
about = {}
1514
with open("libtmux/__about__.py") as fp:
@@ -26,20 +25,6 @@
2625
history = open('CHANGES').read().replace('.. :changelog:', '')
2726

2827

29-
class PyTest(TestCommand):
30-
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
31-
32-
def initialize_options(self):
33-
TestCommand.initialize_options(self)
34-
self.pytest_args = []
35-
36-
def run_tests(self):
37-
import pytest
38-
39-
errno = pytest.main(self.pytest_args)
40-
sys.exit(errno)
41-
42-
4328
setup(
4429
name=about['__title__'],
4530
version=about['__version__'],
@@ -58,7 +43,6 @@ def run_tests(self):
5843
packages=['libtmux'],
5944
include_package_data=True,
6045
tests_require=tests_reqs,
61-
cmdclass={'test': PyTest},
6246
zip_safe=False,
6347
keywords=about['__title__'],
6448
classifiers=[

0 commit comments

Comments
 (0)