diff options
author | Bert JW Regeer <bertjw@regeer.org> | 2020-05-07 00:44:21 -0700 |
---|---|---|
committer | Bert JW Regeer <bertjw@regeer.org> | 2020-08-15 18:55:05 -0700 |
commit | d2894cbc5c2e66572254fca59d207b9e8d62cf73 (patch) | |
tree | c3d0343894282e23e1c06ce0072abf3a2ab6d358 | |
parent | 43d6ad5c54725fd556adda776e9d1a9c8ea0de67 (diff) | |
download | waitress-d2894cbc5c2e66572254fca59d207b9e8d62cf73.tar.gz |
PY3 is only code path
-rw-r--r-- | tests/test_compat.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/test_compat.py b/tests/test_compat.py index 1940e79..e371348 100644 --- a/tests/test_compat.py +++ b/tests/test_compat.py @@ -8,13 +8,7 @@ class Test_unquote_bytes_to_wsgi(unittest.TestCase): return unquote_bytes_to_wsgi(v) def test_highorder(self): - from waitress.compat import PY3 - val = b"/a%C5%9B" result = self._callFUT(val) - if PY3: # pragma: no cover - # PEP 3333 urlunquoted-latin1-decoded-bytes - self.assertEqual(result, "/aÅ\x9b") - else: # pragma: no cover - # sanity - self.assertEqual(result, b"/a\xc5\x9b") + # PEP 3333 urlunquoted-latin1-decoded-bytes + self.assertEqual(result, "/aÅ\x9b") |