fix intern() test in Py3
authorStefan Behnel <scoder@users.berlios.de>
Sun, 25 Oct 2009 08:17:08 +0000 (09:17 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 25 Oct 2009 08:17:08 +0000 (09:17 +0100)
tests/run/intern_T431.pyx

index dfdff19d3de7167abd8af8e19d64d1c8caaa150e..5cbd00666e543f810c6b23a2fbf99f86318dd3b0 100644 (file)
@@ -1,6 +1,15 @@
 __doc__ = u"""
 >>> s == s_interned
 True
+>>> s == s_interned_dynamic
+True
+>>> s == 'abc' == s_interned == s_interned_dynamic
+True
+"""
+
+import sys
+if sys.version_info[0] < 3:
+    __doc__ += u"""
 >>> intern(s) is s_interned
 True
 >>> intern('abc') is s_interned