From 97cda4b35bee008c7eacf48618ed57ebbdd06a85 Mon Sep 17 00:00:00 2001 From: pankrat Date: Sat, 30 May 2009 11:43:22 +0000 Subject: [PATCH] fix minor unicode issue in UtilTests git-svn-id: http://scons.tigris.org/svn/scons/trunk@4218 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/engine/SCons/UtilTests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/SCons/UtilTests.py b/src/engine/SCons/UtilTests.py index 7d417d3e..9d013ca4 100644 --- a/src/engine/SCons/UtilTests.py +++ b/src/engine/SCons/UtilTests.py @@ -697,7 +697,9 @@ bling def test_intern(self): s1 = silent_intern("spam") - s2 = silent_intern(u"unicode spam") + # Python 1.5 and 3.x do not have a unicode() built-in + if sys.version[0] == '2': + s2 = silent_intern(unicode("unicode spam")) s3 = silent_intern(42) s4 = silent_intern("spam") assert id(s1) == id(s4) -- 2.26.2