From: pankrat Date: Sat, 30 May 2009 11:43:22 +0000 (+0000) Subject: fix minor unicode issue in UtilTests X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=97cda4b35bee008c7eacf48618ed57ebbdd06a85;p=scons.git fix minor unicode issue in UtilTests git-svn-id: http://scons.tigris.org/svn/scons/trunk@4218 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- 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)