diff --git a/tests/test_doctests.py b/tests/test_doctests.py index 70bd5e29..7ff2d5a2 100644 --- a/tests/test_doctests.py +++ b/tests/test_doctests.py @@ -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) diff --git a/zipline/lib/adjustment.pyx b/zipline/lib/adjustment.pyx index c0699540..e0f41597 100644 --- a/zipline/lib/adjustment.pyx +++ b/zipline/lib/adjustment.pyx @@ -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 diff --git a/zipline/utils/input_validation.py b/zipline/utils/input_validation.py index ab991ab4..8f5a3a1d 100644 --- a/zipline/utils/input_validation.py +++ b/zipline/utils/input_validation.py @@ -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.")