From: Stefan Behnel Date: Sat, 10 Oct 2009 09:35:58 +0000 (+0200) Subject: test fix X-Git-Tag: 0.13.beta0~2^2~121^2~93 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=1494945be2aff6bf333206118edd77f7bb0b9965;p=cython.git test fix --- diff --git a/tests/run/king1.pyx b/tests/run/king1.pyx index 91bbfc27..63e54bdb 100644 --- a/tests/run/king1.pyx +++ b/tests/run/king1.pyx @@ -1,12 +1,22 @@ __doc__ = u""" ->>> f() +>>> uf() +It works! +>>> bf() It works! """ -DEF STUFF = "Spam" +DEF USTUFF = u"Spam" + +def uf(): + IF USTUFF == u"Spam": + print "It works!" + ELSE: + print "Doesn't work" + +DEF BSTUFF = b"Spam" -def f(): - IF STUFF == "Spam": - print u"It works!" +def bf(): + IF BSTUFF == b"Spam": + print "It works!" ELSE: - print u"Doesn't work" + print "Doesn't work"