From: Stefan Behnel Date: Sun, 25 Oct 2009 08:17:08 +0000 (+0100) Subject: fix intern() test in Py3 X-Git-Tag: 0.12.alpha0~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a68c7220150c7ebf477bba3ac7259732ef19766e;p=cython.git fix intern() test in Py3 --- diff --git a/tests/run/intern_T431.pyx b/tests/run/intern_T431.pyx index dfdff19d..5cbd0066 100644 --- 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