diff options
| author | Michael Merickel <michael@merickel.org> | 2018-11-12 23:16:09 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2018-11-12 23:16:09 -0600 |
| commit | b1a257bacc1c4ac2c1401ed02c51d9c6c03685d2 (patch) | |
| tree | a3024d0d24f192d1dd8c24eab6e9ec4b39169489 /tests/test_httpexceptions.py | |
| parent | 6b0e4625da2c53a1e3fdb4857fc7c6ba6ce562cf (diff) | |
| download | pyramid-b1a257bacc1c4ac2c1401ed02c51d9c6c03685d2.tar.gz pyramid-b1a257bacc1c4ac2c1401ed02c51d9c6c03685d2.tar.bz2 pyramid-b1a257bacc1c4ac2c1401ed02c51d9c6c03685d2.zip | |
get rid of type aliases
Diffstat (limited to 'tests/test_httpexceptions.py')
| -rw-r--r-- | tests/test_httpexceptions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_httpexceptions.py b/tests/test_httpexceptions.py index 4c13e096d..195496e2e 100644 --- a/tests/test_httpexceptions.py +++ b/tests/test_httpexceptions.py @@ -1,6 +1,6 @@ import unittest -from pyramid.compat import bytes_, string_types, text_ +from pyramid.compat import bytes_, text_ class Test_exception_response(unittest.TestCase): @@ -406,7 +406,7 @@ class TestHTTPException(unittest.TestCase): def test_allow_detail_non_str(self): exc = self._makeOne(detail={'error': 'This is a test'}) - self.assertIsInstance(exc.__str__(), string_types) + self.assertIsInstance(exc.__str__(), str) class TestRenderAllExceptionsWithoutArguments(unittest.TestCase): |
