MAINT: cleanup doctests

This commit is contained in:
llllllllll
2015-10-19 16:35:03 -04:00
parent c58f0137e4
commit 3fb91e4d39
3 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -10,10 +10,11 @@ from zipline.pipeline import (
)
from zipline.utils import (
cache,
input_validation,
memoize,
numpy_utils,
preprocess,
test_utils,
numpy_utils,
)
@@ -69,6 +70,9 @@ class DoctestTestCase(TestCase):
def test_preprocess_docs(self):
self._check_docs(preprocess)
def test_input_validation_docs(self):
self._check_docs(input_validation)
def test_cache_docs(self):
self._check_docs(cache)
+1 -1
View File
@@ -75,7 +75,7 @@ cpdef _from_assets_and_dates(cls,
... 3,
... 0.5,
... )
Float64Multiply(first_row=2, last_row=4, first_col=3, last_col=3, value=0.500000) # noqa
Float64Multiply(first_row=2, last_row=4, first_col=3, last_col=3, value=0.500000)
"""
cdef:
Py_ssize_t first_row, last_row, col
+1 -1
View File
@@ -151,7 +151,7 @@ def expect_element(*_pos, **named):
>>> foo('c')
Traceback (most recent call last):
...
TypeError: foo() expected a value in ('a', 'b') for argument 'x', but got 'c' instead. # noqa
ValueError: foo() expected a value in ('a', 'b') for argument 'x', but got 'c' instead. # noqa
"""
if _pos:
raise TypeError("expect_element() only takes keyword arguments.")