Skip to content

Commit a117a6d

Browse files
committed
remove py27 leftovers
1 parent 84e657b commit a117a6d

File tree

2 files changed

+15
-21
lines changed

2 files changed

+15
-21
lines changed

test/test_invalid_headers.py

+15-15
Original file line numberDiff line numberDiff line change
@@ -470,39 +470,39 @@ class TestFilter(object):
470470
invalid_request_header_blocks_unicode = (
471471
# First, missing :method
472472
(
473-
(u':authority', u'google.com'),
474-
(u':path', u'/'),
475-
(u':scheme', u'https'),
473+
(':authority', 'google.com'),
474+
(':path', '/'),
475+
(':scheme', 'https'),
476476
),
477477
# Next, missing :path
478478
(
479-
(u':authority', u'google.com'),
480-
(u':method', u'GET'),
481-
(u':scheme', u'https'),
479+
(':authority', 'google.com'),
480+
(':method', 'GET'),
481+
(':scheme', 'https'),
482482
),
483483
# Next, missing :scheme
484484
(
485-
(u':authority', u'google.com'),
486-
(u':method', u'GET'),
487-
(u':path', u'/'),
485+
(':authority', 'google.com'),
486+
(':method', 'GET'),
487+
(':path', '/'),
488488
),
489489
# Finally, path present but empty.
490490
(
491-
(u':authority', u'google.com'),
492-
(u':method', u'GET'),
493-
(u':scheme', u'https'),
494-
(u':path', u''),
491+
(':authority', 'google.com'),
492+
(':method', 'GET'),
493+
(':scheme', 'https'),
494+
(':path', ''),
495495
),
496496
)
497497

498498
# All headers that are forbidden from either request or response blocks.
499499
forbidden_request_headers_bytes = (b':status',)
500-
forbidden_request_headers_unicode = (u':status',)
500+
forbidden_request_headers_unicode = (':status',)
501501
forbidden_response_headers_bytes = (
502502
b':path', b':scheme', b':authority', b':method'
503503
)
504504
forbidden_response_headers_unicode = (
505-
u':path', u':scheme', u':authority', u':method'
505+
':path', ':scheme', ':authority', ':method'
506506
)
507507

508508
@pytest.mark.parametrize('validation_function', validation_functions)

test/test_utility_functions.py

-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
import h2.exceptions
1515
from h2.utilities import SizeLimitDict, extract_method_header
1616

17-
# These tests require a non-list-returning range function.
18-
try:
19-
range = xrange
20-
except NameError:
21-
range = range
22-
2317

2418
class TestGetNextAvailableStreamID(object):
2519
"""

0 commit comments

Comments
 (0)