From a68c7220150c7ebf477bba3ac7259732ef19766e Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 25 Oct 2009 09:17:08 +0100 Subject: [PATCH] fix intern() test in Py3 --- tests/run/intern_T431.pyx | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.26.2