Repository: crossbario/txaio (language: python)

Issue:
extra mock should not be needed
Trivial change:

Replace
https://github.com/crossbario/txaio/blob/8e090c0da42ce57fa909ac97bf31c4a5fbd458c2/test/test_call_later.py#L29

by
```python
from unittest.mock import patch
```

available in the python stdlib since 3.3

This removes the dependency on the extra PyPI package 'mock', which likely goes away for future python versions.


Discussion / hints:

Fix patch:
diff --git a/setup.py b/setup.py
index 0abf896..886ba95 100644
--- a/setup.py
+++ b/setup.py
@@ -61,7 +61,6 @@
     'sphinxcontrib-spelling>=2.1.2',    # BSD
     'sphinx_rtd_theme>=0.1.9',          # BSD
     'tox>=2.1.1',                       # MIT
-    'mock==1.3.0',                      # BSD
     'twine>=1.6.5',                     # Apache 2.0
     'tox-gh-actions>=2.2.0 ',           # MIT
 ]
diff --git a/tox.ini b/tox.ini
index eb3b347..1b7a37d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -29,7 +29,6 @@ python =
 
 [testenv]
 deps =
-    mock
     pytest==4.6.9
     coverage==4.5.4
 


Test patch:
diff --git a/test/test_call_later.py b/test/test_call_later.py
index de5a693..5f8e70f 100644
--- a/test/test_call_later.py
+++ b/test/test_call_later.py
@@ -26,7 +26,7 @@
 
 import sys
 
-from mock import patch
+from unittest.mock import patch
 
 import pytest
 import txaio