Skip to content

Commit ebcc0fd

Browse files
committed
Fix a unittest; bump the version to 0.0.13
1 parent 423dc4b commit ebcc0fd

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name='httptools',
8-
version='0.0.12',
8+
version='0.0.13',
99
description='A collection of framework independent HTTP protocol utils.',
1010
long_description=long_description,
1111
long_description_content_type='text/markdown',

tests/test_parser.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ class Protocol:
354354

355355
def __init__(self):
356356
self.parser = httptools.HttpRequestParser(self)
357-
357+
358358
def on_url(self, url):
359359
assert self.parser.should_upgrade() is False
360360

@@ -582,9 +582,8 @@ def test_parser_url_1(self):
582582
(None, None, None, b'/a/b/c', b'b=1&', None, None))
583583

584584
def test_parser_url_2(self):
585-
self.assertEqual(
586-
self.parse(b''),
587-
(None, None, None, None, None, None, None))
585+
with self.assertRaises(httptools.HttpParserInvalidURLError):
586+
self.parse(b'')
588587

589588
def test_parser_url_3(self):
590589
with self.assertRaises(httptools.HttpParserInvalidURLError):

0 commit comments

Comments
 (0)