bpo-24234: implement complex.complex by mdickinson · Pull Request #27887 · python/cpython (original) (raw)

Hmm; there's an annoying test_doctest failure:

**********************************************************************
File "/Users/runner/work/cpython/cpython/Lib/test/test_doctest.py", line 671, in test.test_doctest.test_DocTestFinder.non_Python_modules
Failed example:
    816 < len(tests) < 836 # approximate number of objects with docstrings
Expected:
    True
Got:
    False

Given that there have probably been other docstrings added to builtins since this was last touched (e.g., int.bitcount), and that the failures appear to be the result of hitting the upper end of the (816, 836) range, I've bumped the expected numbers up to 820 < len(tests) < 840. But this feels like a rather awkward and fragile test.