1
0
mirror of https://github.com/django/django.git synced 2024-12-25 02:26:12 +00:00

Allow tests using a LiveServer to get closer to working.

This commit is contained in:
Alex Gaynor 2012-08-15 02:11:55 -07:00 committed by Alex Gaynor
parent dfbcbf2124
commit d1d393f975

View File

@ -1134,7 +1134,7 @@ class LiveServerTestCase(TransactionTestCase):
host, port_ranges = specified_address.split(':')
for port_range in port_ranges.split(','):
# A port range can be of either form: '8000' or '8000-8010'.
extremes = map(int, port_range.split('-'))
extremes = list(map(int, port_range.split('-')))
assert len(extremes) in [1, 2]
if len(extremes) == 1:
# Port range of the form '8000'