doctests must set __doc__ in Py2.3
authorStefan Behnel <scoder@users.berlios.de>
Sat, 13 Dec 2008 20:25:00 +0000 (21:25 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 13 Dec 2008 20:25:00 +0000 (21:25 +0100)
13 files changed:
tests/run/and.pyx
tests/run/bint.pyx
tests/run/dictcomp.pyx
tests/run/funcexceptcypy.pyx
tests/run/inlinepxd.pyx
tests/run/listcomp.pyx
tests/run/nonecheck.pyx
tests/run/or.pyx
tests/run/r_typecast.pyx
tests/run/set.pyx
tests/run/setcomp.pyx
tests/run/ticket_124.pyx
tests/run/tryfinally.pyx

index 86165930b94aa3944b28d9556f777c5a815c4485..070ba6f092a222d5a11289361db708293cb380c7 100644 (file)
@@ -1,4 +1,4 @@
-u"""
+__doc__ = u"""
 >>> a,b = 'a *','b *' # use non-interned strings
 
 >>> and2_assign(2,3) == (2 and 3)
index 827cf04298b61b0c40bfbbd2c7ea47065688e8c4..025c69e81215f2076700b02d48cd04f81017a2ac 100644 (file)
@@ -1,5 +1,4 @@
-
-"""
+__doc__ = u"""
 >>> call_test()
 False
 True
index 7c3e92c761952b08370707c7aba54627407b350c..0df23a4f44beb71d3cc06ceb9b7ec5d2f77bd4ef 100644 (file)
@@ -1,4 +1,4 @@
-u"""
+__doc__ = u"""
 >>> type(smoketest()) is dict
 True
 
index 391fed3f5eed8b306251bcb11134c9b54746949e..f27a304a4c51b0bc852e6b773944cb78986edd64 100644 (file)
@@ -1,4 +1,4 @@
-u"""
+__doc__ = u"""
 >>> import sys
 >>> if not IS_PY3: sys.exc_clear()
 
index 8220fa0842f304495a8f9bbc1339d01772f5b492..5c932f43f663c965172768041bfd0a1b84a3e047 100644 (file)
@@ -1,4 +1,4 @@
-"""
+__doc__ = u"""
 >>> f()
 3
 >>> g()
index d7c0ae0b51e22bad5bd18d029df8c95a96ca7d8c..a7b9d1c2a9d0ebd5d67e3abd0a45af6097539d89 100644 (file)
@@ -1,4 +1,4 @@
-u"""
+__doc__ = u"""
 >>> smoketest()
 [0, 4, 8]
 >>> typed()
index 79ba6f101b2d51d46d38d329db14124757fc7240..96dd49c8e54dbfe005c13d2678675c92a0e7f05b 100644 (file)
@@ -1,4 +1,4 @@
-"""
+__doc__ = u"""
 Tests accessing attributes of extension type variables
 set to None
 
index fb6d8e63da2e81b4d248c9adc0450f0a339ab86e..b50ecd400b6d2b6033b39b9a8be16a755abf3b4f 100644 (file)
@@ -1,4 +1,4 @@
-u"""
+__doc__ = u"""
 >>> a,b = 'a *','b *' # use non-interned strings
 
 >>> or2_assign(2,3) == (2 or 3)
index e7884b65dfcb5cf9bb92e571483c1567b59d20c5..a4a6b59881654100d6ee57087ade9ebe703d6779 100644 (file)
@@ -1,4 +1,4 @@
-u"""
+__doc__ = u"""
 >>> call_method( ExtType() ).method()
 1
 """
index bbb48e9f4b334122c8cb59a84a693d7dbc67e1de..8b78330f9a45423e1beeeeec16f0fd47265cd643 100644 (file)
@@ -1,4 +1,4 @@
-u"""
+__doc__ = u"""
 >>> type(test_set_literal()) is _set
 True
 >>> sorted(test_set_literal())
index 9ab3b9f3a155340295379735ac57907b10b0b75c..082ceeb2749c78cfb98470b72a6201a90e702308 100644 (file)
@@ -1,4 +1,4 @@
-u"""
+__doc__ = u"""
 >>> type(smoketest()) is not list
 True
 >>> type(smoketest()) is _set
index 5f9b23a3b11a3d8b711e70466426ec2d3f4becf2..2a27bb9fa9c0e30638c737bce454800d32e707c7 100644 (file)
@@ -1,4 +1,4 @@
-"""
+__doc__ = u"""
 >>> spam(dict(test=2))
 False
 """
index 8caac5d78c91b2b6562a1e6b3a320217fd3de993..871546d605cf8a81738d3df33d62e4e49141f1d7 100644 (file)
@@ -1,4 +1,4 @@
-u"""
+__doc__ = u"""
 >>> try:
 ...     raise ValueError
 ... finally: