summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyramid/tests/test_util.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pyramid/tests/test_util.py b/pyramid/tests/test_util.py
index 2883a968c..7c870bc45 100644
--- a/pyramid/tests/test_util.py
+++ b/pyramid/tests/test_util.py
@@ -1,4 +1,5 @@
import unittest
+from pyramid.compat import PY3
class TestDottedNameResolver(unittest.TestCase):
def _makeOne(self, package=None):
@@ -14,6 +15,14 @@ class TestDottedNameResolver(unittest.TestCase):
else:
raise AssertionError('Invalid not raised') # pragma: no cover
+ def test_zope_dottedname_style_resolve_builtin(self):
+ typ = self._makeOne()
+ if PY3:
+ result = typ._zope_dottedname_style('builtins.str')
+ else:
+ result = typ._zope_dottedname_style('__builtin__.str')
+ self.assertEqual(result, str)
+
def test_zope_dottedname_style_resolve_absolute(self):
typ = self._makeOne()
result = typ._zope_dottedname_style(