@@ -470,39 +470,39 @@ class TestFilter(object):
470
470
invalid_request_header_blocks_unicode = (
471
471
# First, missing :method
472
472
(
473
- (u ':authority' , u 'google.com' ),
474
- (u ':path' , u '/' ),
475
- (u ':scheme' , u 'https' ),
473
+ (':authority' , 'google.com' ),
474
+ (':path' , '/' ),
475
+ (':scheme' , 'https' ),
476
476
),
477
477
# Next, missing :path
478
478
(
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' ),
482
482
),
483
483
# Next, missing :scheme
484
484
(
485
- (u ':authority' , u 'google.com' ),
486
- (u ':method' , u 'GET' ),
487
- (u ':path' , u '/' ),
485
+ (':authority' , 'google.com' ),
486
+ (':method' , 'GET' ),
487
+ (':path' , '/' ),
488
488
),
489
489
# Finally, path present but empty.
490
490
(
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' , '' ),
495
495
),
496
496
)
497
497
498
498
# All headers that are forbidden from either request or response blocks.
499
499
forbidden_request_headers_bytes = (b':status' ,)
500
- forbidden_request_headers_unicode = (u ':status' ,)
500
+ forbidden_request_headers_unicode = (':status' ,)
501
501
forbidden_response_headers_bytes = (
502
502
b':path' , b':scheme' , b':authority' , b':method'
503
503
)
504
504
forbidden_response_headers_unicode = (
505
- u ':path' , u ':scheme' , u ':authority' , u ':method'
505
+ ':path' , ':scheme' , ':authority' , ':method'
506
506
)
507
507
508
508
@pytest .mark .parametrize ('validation_function' , validation_functions )
0 commit comments