projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a11ce5
)
fix intern() test in Py3
author
Stefan Behnel
<scoder@users.berlios.de>
Sun, 25 Oct 2009 08:17:08 +0000
(09:17 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sun, 25 Oct 2009 08:17:08 +0000
(09:17 +0100)
tests/run/intern_T431.pyx
patch
|
blob
|
history
diff --git
a/tests/run/intern_T431.pyx
b/tests/run/intern_T431.pyx
index dfdff19d3de7167abd8af8e19d64d1c8caaa150e..5cbd00666e543f810c6b23a2fbf99f86318dd3b0 100644
(file)
--- a/
tests/run/intern_T431.pyx
+++ b/
tests/run/intern_T431.pyx
@@
-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