Skip to content

Commit

Permalink
Remove accidental backslash
Browse files Browse the repository at this point in the history
Noticed this while looking at other tests.
  • Loading branch information
digitalresistor committed Feb 2, 2020
1 parent f87abb7 commit 51b9bd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions waitress/tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def test_received_bad_host_header(self):

def test_received_bad_transfer_encoding(self):
from waitress.utilities import ServerNotImplemented

data = (
b"GET /foobar HTTP/1.1\r\n"
b"Transfer-Encoding: foo\r\n"
Expand Down Expand Up @@ -211,7 +212,6 @@ def test_parse_header_11_te_chunked(self):
self.parser.parse_header(data)
self.assertEqual(self.parser.body_rcv.__class__.__name__, "ChunkedReceiver")


def test_parse_header_transfer_encoding_invalid(self):
from waitress.parser import TransferEncodingNotImplemented

Expand Down Expand Up @@ -377,7 +377,7 @@ def test_parse_header_invalid_folding_spacing(self):
def test_parse_header_invalid_chars(self):
from waitress.parser import ParsingError

data = b"GET /foobar HTTP/1.1\r\nfoo: bar\r\n\foo: \x0bbaz\r\n"
data = b"GET /foobar HTTP/1.1\r\nfoo: bar\r\nfoo: \x0bbaz\r\n"
try:
self.parser.parse_header(data)
except ParsingError as e:
Expand Down

0 comments on commit 51b9bd4

Please sign in to comment.