Skip to content

Commit

Permalink
test(doctest): add range builtin to doctest namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and gforsyth committed Jan 29, 2024
1 parent f4b67e5 commit e087826
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ibis/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ def add_ibis(monkeypatch, doctest_namespace):
# expressions
ibis.options.interactive = False
# workaround the fact that doctests include everything in the tested module
# for selectors we have an `all` function
# for selectors we have an `all` function as well as `ibis.range`
#
# the clash doesn't really pop up in practice, but we can rename it to
# `all_` in 6.0 if desired
# the clashes don't really pop up in practice because it's unlikely for
# people to write `from $MODULE_BEING_TESTED import *`
doctest_namespace["all"] = builtins.all
doctest_namespace["range"] = builtins.range

0 comments on commit e087826

Please sign in to comment.