Skip to content

Commit 16058de

Browse files
committed
tests: Drop './setup.py test' stub command
We've used pytest-3 for a while. Make default pytest-3 invocation a bit safer Signed-off-by: Cole Robinson <[email protected]>
1 parent 3b8dfb8 commit 16058de

2 files changed

Lines changed: 1 addition & 15 deletions

File tree

setup.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,6 @@ def get_version():
2727
return eval(line.split('=')[-1]) # pylint: disable=eval-used
2828

2929

30-
class TestCommand(Command):
31-
user_options = []
32-
33-
def initialize_options(self):
34-
pass
35-
def finalize_options(self):
36-
pass
37-
38-
def run(self):
39-
print("\n* Tests are now run with the 'pytest' tool.\n"
40-
"* See CONTRIBUTING.md for details.")
41-
42-
4330
class PylintCommand(Command):
4431
user_options = []
4532

@@ -158,6 +145,5 @@ def _parse_requirements(fname):
158145
"build": BuildCommand,
159146
"pylint": PylintCommand,
160147
"rpm": RPMCommand,
161-
"test": TestCommand,
162148
},
163149
)

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ commands =
1111

1212

1313
[pytest]
14-
addopts = -q --tb=native
14+
addopts = -q --tb=native tests/
1515

1616

1717
[coverage:run]

0 commit comments

Comments
 (0)