Import broken on python3
Created originally on Bitbucket by Anonymous
On Python3 (3.5.3), after installing with
pip install anybox.testing.datetime, I get the following error:
import anybox.testing.datetime Traceback (most recent call last): File "", line 1, in File "/home/user_name/.local/lib/python3.5/site-packages/anybox/testing/datetime/init.py", line 2, in import mock_dt ImportError: No module named 'mock_dt'
The solution is to change init.py to import this way: from . import mock_dt from . import mock_time
Also the import of mock_dt on sqllite3.py has to change to: from .mock_dt import original_datetime (notice the leading dot before mock_dt)