[Python-modules-commits] r33319 - in packages/checkbox-ng/trunk/debian (3 files)

zyga-guest at users.alioth.debian.org zyga-guest at users.alioth.debian.org
Thu Jul 9 17:59:40 UTC 2015


    Date: Thursday, July 9, 2015 @ 17:59:39
  Author: zyga-guest
Revision: 33319

Fix builds on Python 3.5 (LP: #1473093)

Added:
  packages/checkbox-ng/trunk/debian/patches/fix-tests-on-python35
Modified:
  packages/checkbox-ng/trunk/debian/changelog
  packages/checkbox-ng/trunk/debian/patches/series

Modified: packages/checkbox-ng/trunk/debian/changelog
===================================================================
--- packages/checkbox-ng/trunk/debian/changelog	2015-07-09 16:21:02 UTC (rev 33318)
+++ packages/checkbox-ng/trunk/debian/changelog	2015-07-09 17:59:39 UTC (rev 33319)
@@ -1,3 +1,9 @@
+checkbox-ng (0.18-2) UNRELEASED; urgency=medium
+
+  * Fix builds on Python 3.5 (LP: #1473093)
+
+ -- Zygmunt Krynicki <zygmunt.krynicki at canonical.com>  Thu, 09 Jul 2015 19:58:33 +0200
+
 checkbox-ng (0.18-1) unstable; urgency=medium
 
   * New upstream release 

Added: packages/checkbox-ng/trunk/debian/patches/fix-tests-on-python35
===================================================================
--- packages/checkbox-ng/trunk/debian/patches/fix-tests-on-python35	                        (rev 0)
+++ packages/checkbox-ng/trunk/debian/patches/fix-tests-on-python35	2015-07-09 17:59:39 UTC (rev 33319)
@@ -0,0 +1,31 @@
+Description: Fix tests on Python 3.5
+ This patch fixes a simple build failure caused by deprecation warning being
+ printed and affecting tests that observe stdout/stderr.
+Author: Zygmunt Krynicki <zygmunt.krynicki at canonical.com>
+Origin: vendor
+Bug-Ubuntu: https://bugs.launchpad.net/checkbox-ng/+bug/1473093 
+Forwarded: https://bugs.launchpad.net/checkbox-ng/+bug/1473093
+Last-Update: 2015-07-09
+
+--- checkbox-ng-0.18.orig/checkbox_ng/service.py
++++ checkbox-ng-0.18/checkbox_ng/service.py
+@@ -27,6 +27,7 @@ import collections
+ import functools
+ import itertools
+ import logging
++import sys
+ 
+ try:
+     from inspect import Signature
+@@ -159,7 +160,10 @@ class PlainBoxObjectWrapper(dbus.service
+         very limited). For the moment it cannot infer the argument types from
+         the decorator for dbus.service.method.
+         """
+-        sig = Signature.from_function(func)
++        if sys.version_info[0:2] >= (3, 5):
++            sig = Signature.from_callable(func)
++        else:
++            sig = Signature.from_function(func)
+ 
+         def translate_o(object_path):
+             try:

Modified: packages/checkbox-ng/trunk/debian/patches/series
===================================================================
--- packages/checkbox-ng/trunk/debian/patches/series	2015-07-09 16:21:02 UTC (rev 33318)
+++ packages/checkbox-ng/trunk/debian/patches/series	2015-07-09 17:59:39 UTC (rev 33319)
@@ -1 +1,2 @@
 documentation-theme
+fix-tests-on-python35




More information about the Python-modules-commits mailing list