summaryrefslogtreecommitdiff
path: root/tests/test_autodoc.py
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2013-12-15 14:16:53 +0900
committershimizukawa <shimizukawa@gmail.com>2013-12-15 14:16:53 +0900
commit3a19adb976393dc4066def880d0db11e2f7378d7 (patch)
tree751d6a1e72f6a59fd036eac63cf01d3c708857a7 /tests/test_autodoc.py
parent75833139dac62e11cfc065044824a98d96fd8751 (diff)
downloadsphinx-3a19adb976393dc4066def880d0db11e2f7378d7.tar.gz
Drop python-2.5 and remove 2.4,2.5 support codes
Diffstat (limited to 'tests/test_autodoc.py')
-rw-r--r--tests/test_autodoc.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py
index 63c341f1..7e60c5fb 100644
--- a/tests/test_autodoc.py
+++ b/tests/test_autodoc.py
@@ -737,12 +737,8 @@ def _funky_classmethod(name, b, c, d, docstring=None):
some arguments."""
def template(cls, a, b, c, d=4, e=5, f=6):
return a, b, c, d, e, f
- if sys.version_info >= (2, 5):
- from functools import partial
- function = partial(template, b=b, c=c, d=d)
- else:
- def function(cls, a, e=5, f=6):
- return template(a, b, c, d, e, f)
+ from functools import partial
+ function = partial(template, b=b, c=c, d=d)
function.__name__ = name
function.__doc__ = docstring
return classmethod(function)
@@ -774,10 +770,9 @@ class Class(Base):
#: should be documented -- süß
attr = 'bar'
+ @property
def prop(self):
"""Property."""
- # stay 2.4 compatible (docstring!)
- prop = property(prop, doc="Property.")
docattr = 'baz'
"""should likewise be documented -- süß"""