Skip to content

Commit 4e1c75b

Browse files
author
Jonathan Kliem
committed
allow ellipsis in doctests
1 parent b54d92a commit 4e1c75b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cydoctest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ def testmod(m=None, *args, **kwargs):
6060
All other arguments are passed directly to doctest.testmod().
6161
"""
6262
fix_module_doctest(m)
63-
result = doctest.testmod(m, *args, **kwargs)
63+
result = doctest.testmod(m, optionflags=doctest.ELLIPSIS, *args, **kwargs)
6464
if result.failed > 0:
6565
sys.exit('%d test(s) failed' % result.failed)

memory_allocator/test.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ cdef class TestMemoryAllocator():
4242
>>> from memory_allocator.test import TestMemoryAllocator
4343
>>> mem = TestMemoryAllocator()
4444
>>> _ = mem.allocarray(100, 10)
45-
>>> mem.allocarray(size_t_max(), 1)
45+
>>> mem.allocarray(mem.size_t_max(), 1)
4646
Traceback (most recent call last):
4747
...
4848
MemoryError: failed to allocate ... * 1 bytes

0 commit comments

Comments
 (0)