Coverage for src/foapy/exceptions/__init__.py: 83%
10 statements
« prev ^ index » next coverage.py v7.8.0, created at 2025-05-17 20:45 +0000
« prev ^ index » next coverage.py v7.8.0, created at 2025-05-17 20:45 +0000
1import sys
3# We first need to detect if we're being called as part of the numpy setup
4# procedure itself in a reliable manner.
5try:
6 __FOAPY_SETUP__
7except NameError:
8 __FOAPY_SETUP__ = False
10if __FOAPY_SETUP__: 10 ↛ 11line 10 didn't jump to line 11 because the condition on line 10 was never true
11 sys.stderr.write("Running from foapy.exceptions source directory.\n")
12else:
13 from .inconsistent_order import InconsistentOrderException # noqa: F401
14 from .not_1d_array import Not1DArrayException # noqa: F401
16 __all__ = list({"InconsistentOrderException", "Not1DArrayException"})