Source: pgxnclient
Version: 1.3.2-6
Severity: important

Dear Maintainer,


python3-mock is an obsolete package.
"mock" has been merge in the Python Standard Library a long time ago,
around the times of Python3.7

Please consider this trivial pseudo-patch that would help remove
the few remaining usage of this library from Debian.

There is no defined timeline yet that says wether this should happen
before of after Forky is released.

Greetings

Alexandre




/tmp/pgxnclient$ git diff
diff --git a/debian/control b/debian/control
index b11fdb5..2d3a048 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,6 @@ Build-Depends:
  help2man,
  libpq-dev,
  python3-all,
- python3-mock,
  python3-pytest,
  python3-pytest-runner,
  python3-setuptools,
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 9c344a7..9058bfd 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -3,7 +3,7 @@ import shutil
 import tempfile
 import unittest
 
-from mock import patch, Mock
+from unittest.mock import patch, Mock
 from six.moves.urllib.parse import quote
 
 from pgxnclient.tar import TarArchive

Reply via email to