You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Is this possible to fix easily?
Thanks for the great work on pendulum!
The text was updated successfully, but these errors were encountered:
I am on the latest Pendulum version.
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!
The text was updated successfully, but these errors were encountered: