From: Afif Elghraoui Date: Sat, 11 Jul 2015 08:01:40 +0000 (-0700) Subject: Improve python3 compatibility for upstream test sources X-Git-Tag: archive/raspbian/0.22.0+ds-1+rpi1~1^2^2~309 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6dbcd084ab14b29d8079925e37bcad065208c3f4;p=python-pysam.git Improve python3 compatibility for upstream test sources --- diff --git a/debian/patches/improve-python3-compatibility.patch b/debian/patches/improve-python3-compatibility.patch new file mode 100644 index 0000000..e7ac5f8 --- /dev/null +++ b/debian/patches/improve-python3-compatibility.patch @@ -0,0 +1,26 @@ +Description: Improve python3 compatibility for tests +Author: Afif Elghraoui +Forwarded: no +Last-Update: 2015-07-11 +--- +--- python-pysam.orig/tests/TestUtils.py ++++ python-pysam/tests/TestUtils.py +@@ -1,3 +1,5 @@ ++from __future__ import absolute_import ++from __future__ import print_function + import sys + import os + import pysam +@@ -68,9 +70,9 @@ + l1 = sorted(l1[:-1].split("\t")) + l2 = sorted(l2[:-1].split("\t")) + if l1 != l2: +- print "mismatch in line %i" % n +- print l1 +- print l2 ++ print("mismatch in line %i" % n) ++ print(l1) ++ print(l2) + return False + else: + return False diff --git a/debian/patches/series b/debian/patches/series index 22c82d0..869d4af 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -2,3 +2,4 @@ change-htslib-statement-to-link-to-debian adding-include-hts-dirs correct-spelling-errors.patch ignore-htslib-dir.patch +improve-python3-compatibility.patch