diff options
author | Stefan Behnel <scoder@users.berlios.de> | 2008-12-13 21:25:00 +0100 |
---|---|---|
committer | Stefan Behnel <scoder@users.berlios.de> | 2008-12-13 21:25:00 +0100 |
commit | fb4ea1378f201b8a34090004b3e65511e8914f4b (patch) | |
tree | a9d11e4067e6e499aef11022cf721e8bdb689436 | |
parent | a742e84db51352c0504243bcfc0c6d09f3ba0bca (diff) | |
download | cython-fb4ea1378f201b8a34090004b3e65511e8914f4b.tar.gz |
doctests must set __doc__ in Py2.3
-rw-r--r-- | tests/run/and.pyx | 2 | ||||
-rw-r--r-- | tests/run/bint.pyx | 3 | ||||
-rw-r--r-- | tests/run/dictcomp.pyx | 2 | ||||
-rw-r--r-- | tests/run/funcexceptcypy.pyx | 2 | ||||
-rw-r--r-- | tests/run/inlinepxd.pyx | 2 | ||||
-rw-r--r-- | tests/run/listcomp.pyx | 2 | ||||
-rw-r--r-- | tests/run/nonecheck.pyx | 2 | ||||
-rw-r--r-- | tests/run/or.pyx | 2 | ||||
-rw-r--r-- | tests/run/r_typecast.pyx | 2 | ||||
-rw-r--r-- | tests/run/set.pyx | 2 | ||||
-rw-r--r-- | tests/run/setcomp.pyx | 2 | ||||
-rw-r--r-- | tests/run/ticket_124.pyx | 2 | ||||
-rw-r--r-- | tests/run/tryfinally.pyx | 2 |
13 files changed, 13 insertions, 14 deletions
diff --git a/tests/run/and.pyx b/tests/run/and.pyx index 86165930b..070ba6f09 100644 --- a/tests/run/and.pyx +++ b/tests/run/and.pyx @@ -1,4 +1,4 @@ -u""" +__doc__ = u""" >>> a,b = 'a *','b *' # use non-interned strings >>> and2_assign(2,3) == (2 and 3) diff --git a/tests/run/bint.pyx b/tests/run/bint.pyx index 827cf0429..025c69e81 100644 --- a/tests/run/bint.pyx +++ b/tests/run/bint.pyx @@ -1,5 +1,4 @@ - -""" +__doc__ = u""" >>> call_test() False True diff --git a/tests/run/dictcomp.pyx b/tests/run/dictcomp.pyx index 7c3e92c76..0df23a4f4 100644 --- a/tests/run/dictcomp.pyx +++ b/tests/run/dictcomp.pyx @@ -1,4 +1,4 @@ -u""" +__doc__ = u""" >>> type(smoketest()) is dict True diff --git a/tests/run/funcexceptcypy.pyx b/tests/run/funcexceptcypy.pyx index 391fed3f5..f27a304a4 100644 --- a/tests/run/funcexceptcypy.pyx +++ b/tests/run/funcexceptcypy.pyx @@ -1,4 +1,4 @@ -u""" +__doc__ = u""" >>> import sys >>> if not IS_PY3: sys.exc_clear() diff --git a/tests/run/inlinepxd.pyx b/tests/run/inlinepxd.pyx index 8220fa084..5c932f43f 100644 --- a/tests/run/inlinepxd.pyx +++ b/tests/run/inlinepxd.pyx @@ -1,4 +1,4 @@ -""" +__doc__ = u""" >>> f() 3 >>> g() diff --git a/tests/run/listcomp.pyx b/tests/run/listcomp.pyx index d7c0ae0b5..a7b9d1c2a 100644 --- a/tests/run/listcomp.pyx +++ b/tests/run/listcomp.pyx @@ -1,4 +1,4 @@ -u""" +__doc__ = u""" >>> smoketest() [0, 4, 8] >>> typed() diff --git a/tests/run/nonecheck.pyx b/tests/run/nonecheck.pyx index 79ba6f101..96dd49c8e 100644 --- a/tests/run/nonecheck.pyx +++ b/tests/run/nonecheck.pyx @@ -1,4 +1,4 @@ -""" +__doc__ = u""" Tests accessing attributes of extension type variables set to None diff --git a/tests/run/or.pyx b/tests/run/or.pyx index fb6d8e63d..b50ecd400 100644 --- a/tests/run/or.pyx +++ b/tests/run/or.pyx @@ -1,4 +1,4 @@ -u""" +__doc__ = u""" >>> a,b = 'a *','b *' # use non-interned strings >>> or2_assign(2,3) == (2 or 3) diff --git a/tests/run/r_typecast.pyx b/tests/run/r_typecast.pyx index e7884b65d..a4a6b5988 100644 --- a/tests/run/r_typecast.pyx +++ b/tests/run/r_typecast.pyx @@ -1,4 +1,4 @@ -u""" +__doc__ = u""" >>> call_method( ExtType() ).method() 1 """ diff --git a/tests/run/set.pyx b/tests/run/set.pyx index bbb48e9f4..8b78330f9 100644 --- a/tests/run/set.pyx +++ b/tests/run/set.pyx @@ -1,4 +1,4 @@ -u""" +__doc__ = u""" >>> type(test_set_literal()) is _set True >>> sorted(test_set_literal()) diff --git a/tests/run/setcomp.pyx b/tests/run/setcomp.pyx index 9ab3b9f3a..082ceeb27 100644 --- a/tests/run/setcomp.pyx +++ b/tests/run/setcomp.pyx @@ -1,4 +1,4 @@ -u""" +__doc__ = u""" >>> type(smoketest()) is not list True >>> type(smoketest()) is _set diff --git a/tests/run/ticket_124.pyx b/tests/run/ticket_124.pyx index 5f9b23a3b..2a27bb9fa 100644 --- a/tests/run/ticket_124.pyx +++ b/tests/run/ticket_124.pyx @@ -1,4 +1,4 @@ -""" +__doc__ = u""" >>> spam(dict(test=2)) False """ diff --git a/tests/run/tryfinally.pyx b/tests/run/tryfinally.pyx index 8caac5d78..871546d60 100644 --- a/tests/run/tryfinally.pyx +++ b/tests/run/tryfinally.pyx @@ -1,4 +1,4 @@ -u""" +__doc__ = u""" >>> try: ... raise ValueError ... finally: |