Source: python-pymysql
Severity: normal

Please port this package away from Unittest2 which is deprecated.


diff --git a/debian/control b/debian/control
index a517b8b..0483ea5 100644
--- a/debian/control
+++ b/debian/control
@@ -15,7 +15,6 @@ Build-Depends:
  python3-sphinx,
 Build-Depends-Indep:
  default-mysql-server,
- python3-unittest2,
 Standards-Version: 4.4.1
 Vcs-Browser: https://salsa.debian.org/openstack-team/python/python-pymysql
 Vcs-Git: https://salsa.debian.org/openstack-team/python/python-pymysql.git
diff --git a/debian/patches/0001-Disabling-not-working-unit-tests.patch 
b/debian/patches/0001-Disabling-not-working-unit-tests.patch
index fd04ba5..2e181b3 100644
--- a/debian/patches/0001-Disabling-not-working-unit-tests.patch
+++ b/debian/patches/0001-Disabling-not-working-unit-tests.patch
@@ -18,7 +18,7 @@ Index: python-pymysql/pymysql/tests/test_issues.py
                      warnings.filterwarnings("ignore")
                      cur.execute("drop table if exists test_field_count")
  
-+    @unittest2.skip("Not working on Debian")
++    @unittest.skip("Not working on Debian")
      def test_issue_321(self):
          """ Test iterable as query argument. """
          conn = pymysql.connect(charset="utf8", **self.databases[0])
@@ -29,14 +29,14 @@ Index: python-pymysql/pymysql/tests/test_load_local.py
 @@ -1,11 +1,13 @@
  from pymysql import cursors, OperationalError, Warning
  from pymysql.tests import base
-+import unittest2
++from mock import unittest
  
  import os
  
  __all__ = ["TestLoadLocal"]
  
  
-+@unittest2.skip("Not working on Debian")
++@unittest.skip("Not working on Debian")
  class TestLoadLocal(base.PyMySQLTestCase):
      def test_no_file(self):
          """Test load local infile when the file does not exist"""


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (501, 'testing'), (450, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-5-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_BE:fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Reply via email to