Skip to content

Commit e181956

Browse files
author
Ryan P Kilby
committed
Move 'runtests' out of the package root directory
Running the test suite out of 'tests/' prevents adding the package root to 'sys.path', which would cause the local 'rest_framework' files to conflict with the installed package/distribution.
1 parent a959e2e commit e181956

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
File renamed without changes.

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ DJANGO =
1414
master: djangomaster
1515

1616
[testenv]
17-
commands = ./runtests.py --fast --coverage {posargs}
17+
commands = python tests/runtests.py --fast --coverage {posargs}
1818
envdir = {toxworkdir}/venvs/{envname}
1919
setenv =
2020
PYTHONDONTWRITEBYTECODE=1
@@ -34,15 +34,15 @@ deps =
3434
-rrequirements/requirements-testing.txt
3535

3636
[testenv:dist]
37-
commands = ./runtests.py --fast --no-pkgroot --staticfiles {posargs}
37+
commands = python tests/runtests.py --fast --no-pkgroot --staticfiles {posargs}
3838
deps =
3939
django
4040
-rrequirements/requirements-testing.txt
4141
-rrequirements/requirements-optionals.txt
4242

4343
[testenv:lint]
4444
basepython = python2.7
45-
commands = ./runtests.py --lintonly
45+
commands = python tests/runtests.py --lintonly
4646
deps =
4747
-rrequirements/requirements-codestyle.txt
4848
-rrequirements/requirements-testing.txt

0 commit comments

Comments
 (0)