Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Jun 19, 2024
1 parent cf17b19 commit 622c73a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ def is_class(string):
else:
sys.path.pop(0)

# import rest_framework before pytest re-adds the package root directory.
import rest_framework

package_dir = os.path.join(os.getcwd(), "rest_framework")
assert not rest_framework.__file__.startswith(package_dir)

if first_arg.startswith("-"):
# `runtests.py [flags]`
pytest_args = ["tests"] + pytest_args
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ envlist =
{py312}-{django42,django50,djangomain}
base
dist
docs

[testenv]
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --coverage {posargs}
Expand Down

0 comments on commit 622c73a

Please sign in to comment.