From 1494945be2aff6bf333206118edd77f7bb0b9965 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 10 Oct 2009 11:35:58 +0200 Subject: [PATCH] test fix --- tests/run/king1.pyx | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) 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" -- 2.26.2