[libur-perl] 04/05: Patch the test suite to fix a Perl 5.22 deprecation warning

Niko Tyni ntyni at moszumanska.debian.org
Fri Sep 23 08:00:34 UTC 2016


This is an automated email from the git hooks/post-receive script.

ntyni pushed a commit to branch master
in repository libur-perl.

commit 469946eacb26ee538432a8224848d987520a4a81
Author: Niko Tyni <ntyni at debian.org>
Date:   Fri Sep 23 10:19:33 2016 +0300

    Patch the test suite to fix a Perl 5.22 deprecation warning
    
    Closes: #826494
---
 .../0001-silence-warnings-for-perl-5.22.patch      | 36 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 37 insertions(+)

diff --git a/debian/patches/0001-silence-warnings-for-perl-5.22.patch b/debian/patches/0001-silence-warnings-for-perl-5.22.patch
new file mode 100644
index 0000000..91a9993
--- /dev/null
+++ b/debian/patches/0001-silence-warnings-for-perl-5.22.patch
@@ -0,0 +1,36 @@
+From bd0a49af92088e58db8539caa4b082be811b7172 Mon Sep 17 00:00:00 2001
+From: Yanick Champoux <yanick at babyl.dyndns.org>
+Date: Mon, 20 Jun 2016 18:25:20 -0400
+Subject: [PATCH] silence warnings for perl 5.22+
+
+Fixes #118
+
+Bug-Debian: https://bugs.debian.org/834914
+Bug: https://github.com/genome/UR/issues/118
+Origin: upstream, https://github.com/genome/UR/commit/bd0a49af92088e58db8539caa4b082be811b7172
+
+---
+ t/URT/t/54_valid_values.t | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/t/URT/t/54_valid_values.t b/t/URT/t/54_valid_values.t
+index bfac1f6..e7cd9c9 100644
+--- a/t/URT/t/54_valid_values.t
++++ b/t/URT/t/54_valid_values.t
+@@ -91,11 +91,11 @@ for my $class (qw/Game::Card/) {
+        'First error message is correct');
+     my $c4_id = $c4->id;
+     like($error_messages[-2],
+-       qr/Game::Card identified by $c4_id has problems on\s+INVALID: property 'pips': No value specified for required property\s+INVALID: property 'suit': The value badsuit is not in the list of valid values for suit.  Valid values are: heart, diamond, club, spade\s+Current state:\s+\$VAR1 = bless\( {/s,
++       qr/Game::Card identified by $c4_id has problems on\s+INVALID: property 'pips': No value specified for required property\s+INVALID: property 'suit': The value badsuit is not in the list of valid values for suit.  Valid values are: heart, diamond, club, spade\s+Current state:\s+\$VAR1 = bless\( \{/s,
+        'Second error message is correct');
+     my $c3_id = $c3->id;
+     like($error_messages[-3],
+-       qr/Game::Card identified by $c3_id has problems on\s+INVALID: property 'pips': No value specified for required property\s+Current state:\s+\$VAR1 = bless\( {/s,
++       qr/Game::Card identified by $c3_id has problems on\s+INVALID: property 'pips': No value specified for required property\s+Current state:\s+\$VAR1 = bless\( \{/s,
+        'Third error message is correct');
+ }
+ 
+-- 
+2.9.3
+
diff --git a/debian/patches/series b/debian/patches/series
index ac92cd3..efb80eb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 spelling.patch
 Honour-SOURCE_DATE_EPOCH-for-embedded-timestamp-in-genera.patch
 0001-Ref-addresses-can-be-re-used-use-a-serial-number-ins.patch
+0001-silence-warnings-for-perl-5.22.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libur-perl.git



More information about the Pkg-perl-cvs-commits mailing list