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
Prefer unittest.mock but require mock for python < 3.3.
The unit tests require mock but don't specify it, which causes
problems for any usages outside tox (e.g. testing that changes to
twisted don't break klein). Use PEP508 to specify environment markers
and only install mock when required. Tests can then conditionally
import unittest.mock and fall back to mock.
The conditional imports do raise a mypy error, discussed here:
python/mypy#1153
So an annotation is required to silence this specific warning.
0 commit comments