Control: tags 802361 + patch
Control: tags 802361 + pending

Dear maintainer,

I've prepared an NMU for unittest2 (versioned as 1.1.0-6.1) and
uploaded it to DELAYED/7. Please feel free to tell me if I
should delay it longer.

It adds a simple change to handle python3.5 in the unit tests
where a string match would fail due to escaping of the parentheses.

Regards.
diff -Nru unittest2-1.1.0/debian/changelog unittest2-1.1.0/debian/changelog
--- unittest2-1.1.0/debian/changelog	2015-09-14 13:46:47.000000000 +0100
+++ unittest2-1.1.0/debian/changelog	2016-02-20 14:15:45.000000000 +0000
@@ -1,3 +1,11 @@
+unittest2 (1.1.0-6.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix failing string match in unit tests for attribute error
+    exceptions with python3.5. (Closes: #802361)
+
+ -- Neil Williams <codeh...@debian.org>  Sat, 20 Feb 2016 14:15:43 +0000
+
 unittest2 (1.1.0-6) unstable; urgency=medium
 
   * Also Depends: on python{3}-linecache2.
diff -Nru unittest2-1.1.0/debian/patches/python3.5-support.patch unittest2-1.1.0/debian/patches/python3.5-support.patch
--- unittest2-1.1.0/debian/patches/python3.5-support.patch	1970-01-01 01:00:00.000000000 +0100
+++ unittest2-1.1.0/debian/patches/python3.5-support.patch	2016-02-20 14:18:23.000000000 +0000
@@ -0,0 +1,21 @@
+Description: Fix string match for python3.5 support
+ unittest2 (1.1.0-6.1) unstable; urgency=medium
+ .
+   * Non-maintainer upload.
+   * Fix failing string match in unit tests for attribute error
+     exceptions with python3.5. (Closes: #802361)
+Author: Neil Williams <codeh...@debian.org>
+Bug-Debian: https://bugs.debian.org/802361
+
+--- unittest2-1.1.0.orig/unittest2/test/test_loader.py
++++ unittest2-1.1.0/unittest2/test/test_loader.py
+@@ -426,7 +426,8 @@ class Test_TestLoader(unittest2.TestCase
+         except self.failureException:
+             self._check_module_lookup_error(
+                 error, test, AttributeError,
+-                "module '%s' has no attribute '%s'" % (name, regex), attr, regex)
++                "module '%s' has no attribute '%s'" % (
++                    name, regex.replace('\\', '')), attr, regex)
+ 
+     def check_module_import_error(self, error, test, attr='sdasfasfasdf', regex='(unittest2)?sdasfasfasdf'):
+         try:
diff -Nru unittest2-1.1.0/debian/patches/series unittest2-1.1.0/debian/patches/series
--- unittest2-1.1.0/debian/patches/series	2015-07-09 10:06:19.000000000 +0100
+++ unittest2-1.1.0/debian/patches/series	2016-02-20 14:18:30.000000000 +0000
@@ -1 +1,2 @@
 drop-argparse.patch
+python3.5-support.patch

Attachment: signature.asc
Description: PGP signature

Reply via email to