Package: libtest-fitesque-rdf-perl / 0.100-2

done_testing-overwrite.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Description: fix collision on done_testing declaration with perl 5.40.
 Starting with Perl 5.40, there is a collision on done_testing
 subroutine declaration causing the following test failure:
 .
        Overwriting existing sub 'main::done_testing' with sub 'done_testing' exported by Test::Modern at t/integration-basic.t line 29.
        #   Failed test 'no (unexpected) warnings (via done_testing)'
        #   at t/integration-basic.t line 82.
        # Looks like you failed 1 test of 7.
        t/integration-basic.t ...... 
        […]
        not ok 7 - no (unexpected) warnings (via done_testing)
 .
 Ensuring fully qualified use of Test::More subroutines allows
 resolution of the namespace collision via a "require" import instead of
 a "use".
Author: Étienne Mollier <emollier@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1093442
Forwarded: https://github.com/perlrdf/p5-test-fitesque-rdf/pull/14
Last-Update: 2025-03-21
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- libtest-fitesque-rdf-perl.orig/t/integration-basic.t
+++ libtest-fitesque-rdf-perl/t/integration-basic.t
@@ -25,7 +25,7 @@
 use strict;
 use warnings;
 
-use Test::More;
+require Test::More;
 use Test::Modern qw(-more -fatal -warnings -deeper);
 use FindBin qw($Bin);
 use Test::FITesque;
@@ -33,7 +33,7 @@
 
 use lib 't/lib';
 
-use_ok('Test::FITesque::RDF');
+Test::More::use_ok('Test::FITesque::RDF');
 
 subtest 'Run with no file' => sub {
   like(