[X] I have searched the issues of this repo and believe that this is not a duplicate.
OS version and name: macOS 13.3.1 (a)
Pendulum version: 3.0.0
Issue
The following code:
python -c "import sys; import pendulum; print('pytest' in sys.modules)"
prints True. Unfortunately the test 'pytest' in sys.modules is often used to detect whether code is running under pytest or not, and modify code behaviour accordingly (see eg https://pypi.org/project/pytest-is-running/)
Ideally importing pendlum would not cause pytest to be imported.
[X] I am on the latest Pendulum version.
[X] I have searched the issues of this repo and believe that this is not a duplicate.
OS version and name: macOS 13.3.1 (a)
Pendulum version: 3.0.0
Issue
The following code:
prints
True
. Unfortunately the test'pytest' in sys.modules
is often used to detect whether code is running under pytest or not, and modify code behaviour accordingly (see eg https://pypi.org/project/pytest-is-running/)Ideally importing pendlum would not cause pytest to be imported.
Is this possible to fix easily?
Thanks for the great work on pendulum!