File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 33from __future__ import with_statement
44
55import os
6+ import warnings
7+ from contextlib import contextmanager
68from functools import partial
79
810import pytest
911
10- from contextlib import contextmanager
11-
1212from . import live_server_helper
13-
1413from .django_compat import is_django_unittest
15-
1614from .lazy_django import skip_if_no_django
1715
1816__all__ = [
@@ -362,8 +360,7 @@ def live_server(request):
362360 if django .VERSION >= (1 , 11 ):
363361 ports = addr .split (":" )[1 ]
364362 if "-" in ports or "," in ports :
365- request .config .warn (
366- "D001" ,
363+ warnings .warn (
367364 "Specifying multiple live server ports is not supported "
368365 "in Django 1.11. This will be an error in a future "
369366 "pytest-django release." ,
You can’t perform that action at this time.
0 commit comments