summaryrefslogtreecommitdiff
path: root/tests/test_traversal.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2018-11-12 23:16:09 -0600
committerMichael Merickel <michael@merickel.org>2018-11-12 23:16:09 -0600
commitb1a257bacc1c4ac2c1401ed02c51d9c6c03685d2 (patch)
treea3024d0d24f192d1dd8c24eab6e9ec4b39169489 /tests/test_traversal.py
parent6b0e4625da2c53a1e3fdb4857fc7c6ba6ce562cf (diff)
downloadpyramid-b1a257bacc1c4ac2c1401ed02c51d9c6c03685d2.tar.gz
pyramid-b1a257bacc1c4ac2c1401ed02c51d9c6c03685d2.tar.bz2
pyramid-b1a257bacc1c4ac2c1401ed02c51d9c6c03685d2.zip
get rid of type aliases
Diffstat (limited to 'tests/test_traversal.py')
-rw-r--r--tests/test_traversal.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/tests/test_traversal.py b/tests/test_traversal.py
index b517fa646..ed5e0031e 100644
--- a/tests/test_traversal.py
+++ b/tests/test_traversal.py
@@ -3,7 +3,7 @@ import unittest
from pyramid.testing import cleanUp
-from pyramid.compat import text_, native_, text_type, url_quote
+from pyramid.compat import text_, native_, url_quote
class TraversalPathTests(unittest.TestCase):
@@ -71,8 +71,8 @@ class TraversalPathInfoTests(unittest.TestCase):
def test_segments_are_unicode(self):
result = self._callFUT('/foo/bar')
- self.assertEqual(type(result[0]), text_type)
- self.assertEqual(type(result[1]), text_type)
+ self.assertEqual(type(result[0]), str)
+ self.assertEqual(type(result[1]), str)
def test_same_value_returned_if_cached(self):
result1 = self._callFUT('/foo/bar')
@@ -870,15 +870,6 @@ class QuotePathSegmentTests(unittest.TestCase):
result = self._callFUT(s)
self.assertEqual(result, '12345')
- def test_long(self):
- from pyramid.compat import long
- import sys
-
- s = long(sys.maxsize + 1)
- result = self._callFUT(s)
- expected = str(s)
- self.assertEqual(result, expected)
-
def test_other(self):
class Foo(object):
def __str__(self):