Skip to content

Commit b954c59

Browse files
committed
running 'python setup.py test' is deprecated
1 parent 3856cd8 commit b954c59

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

setup.py

-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,4 @@
11
from setuptools import setup, find_packages
2-
from setuptools.command.test import test as TestCommand
3-
import sys
4-
5-
6-
class PyTest(TestCommand):
7-
def finalize_options(self):
8-
TestCommand.finalize_options(self)
9-
self.test_args = []
10-
self.test_suite = True
11-
12-
def run_tests(self):
13-
#import here, cause outside the eggs aren't loaded
14-
import pytest
15-
errno = pytest.main(self.test_args)
16-
sys.exit(errno)
172

183
setup(
194
name='skeleton_for_pytest',
@@ -25,7 +10,6 @@ def run_tests(self):
2510
license='MIT',
2611
packages=find_packages(exclude=['tests']),
2712
tests_require=['pytest'],
28-
cmdclass={'test': PyTest},
2913
classifiers=[
3014
'Intended Audience :: Developers',
3115
'License :: OSI Approved :: MIT License',

0 commit comments

Comments
 (0)