diff options
| author | Chris McDonough <chrism@plope.com> | 2014-07-13 22:58:30 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2014-07-13 22:58:30 -0400 |
| commit | a9a1aad2684c5bea10fd4db6b63491d6e5a23223 (patch) | |
| tree | 7a33a7a99843e8487fa63d8136fd523a76e1b212 /waitress/tests/test_parser.py | |
| parent | 77698fbf35376bdd530493e5db262c256ebe87c4 (diff) | |
| download | waitress-fix.issue64.tar.gz | |
This fixes #64 but only for Python 3; Python 2 fails the test. I'm clueless about what the right thing to do is.fix.issue64
Diffstat (limited to 'waitress/tests/test_parser.py')
| -rw-r--r-- | waitress/tests/test_parser.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/waitress/tests/test_parser.py b/waitress/tests/test_parser.py index ed3a66c..5805408 100644 --- a/waitress/tests/test_parser.py +++ b/waitress/tests/test_parser.py @@ -249,6 +249,11 @@ class Test_split_uri(unittest.TestCase): self.assertEqual(self.proxy_scheme, 'https') self.assertEqual(self.proxy_netloc, 'localhost:8080') + def test_split_uri_unicode_error_raises_parsing_error(self): + # See https://github.com/Pylons/waitress/issues/64 + from waitress.parser import ParsingError + self.assertRaises(ParsingError, self._callFUT, b'/\xd0') + class Test_get_header_lines(unittest.TestCase): def _callFUT(self, data): |
