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 3
3
from __future__ import with_statement
4
4
5
5
import os
6
+ import warnings
7
+ from contextlib import contextmanager
6
8
from functools import partial
7
9
8
10
import pytest
9
11
10
- from contextlib import contextmanager
11
-
12
12
from . import live_server_helper
13
-
14
13
from .django_compat import is_django_unittest
15
-
16
14
from .lazy_django import skip_if_no_django
17
15
18
16
__all__ = [
@@ -362,8 +360,7 @@ def live_server(request):
362
360
if django .VERSION >= (1 , 11 ):
363
361
ports = addr .split (":" )[1 ]
364
362
if "-" in ports or "," in ports :
365
- request .config .warn (
366
- "D001" ,
363
+ warnings .warn (
367
364
"Specifying multiple live server ports is not supported "
368
365
"in Django 1.11. This will be an error in a future "
369
366
"pytest-django release." ,
You can’t perform that action at this time.
0 commit comments