projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e922fc0
)
test fix
author
Stefan Behnel
<scoder@users.berlios.de>
Thu, 15 May 2008 07:44:11 +0000
(09:44 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Thu, 15 May 2008 07:44:11 +0000
(09:44 +0200)
tests/run/r_mang1.pyx
patch
|
blob
|
history
diff --git
a/tests/run/r_mang1.pyx
b/tests/run/r_mang1.pyx
index 8357b136a260549756d58eb6c5b3ff90e35bf17e..86840f4d03ea9c62a9bfbc1e69ce7fbcae236b0f 100644
(file)
--- a/
tests/run/r_mang1.pyx
+++ b/
tests/run/r_mang1.pyx
@@
-1,12
+1,16
@@
__doc__ = u"""
>>> import re
>>> t
- ('2',)
+ (
u
'2',)
>>> t == re.search('(\\d+)', '-2.80 98\\n').groups()
True
"""
+import sys
+if sys.version_info[0] >= 3:
+ __doc__ = __doc__.replace(u"(u'", u"('")
+
# this is a string constant test, not a test for 're'
import re
-t = re.search(
'(\d+)',
'-2.80 98\n').groups()
+t = re.search(
u'(\d+)', u
'-2.80 98\n').groups()