Skip to content

Commit 1f7207b

Browse files
explicitly use Test2::Warnings
1 parent f689f5f commit 1f7207b

12 files changed

+12
-12
lines changed

t/add-schema.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ no feature 'switch';
1212
use open ':std', ':encoding(UTF-8)'; # force stdin, stdout, stderr into utf8
1313

1414
use Test::Fatal;
15-
use Test::Warnings qw(warnings :no_end_test had_no_warnings);
15+
use Test2::Warnings qw(warnings :no_end_test had_no_warnings);
1616
use List::Util 'unpairs';
1717
use lib 't/lib';
1818
use Helper;

t/additional-tests-draft2019-09.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ no if "$]" >= 5.041009, feature => 'smartmatch';
1212
no feature 'switch';
1313
use open ':std', ':encoding(UTF-8)'; # force stdin, stdout, stderr into utf8
1414

15-
use Test::Warnings 'warnings', ':no_end_test';
15+
use Test2::Warnings 'warnings', ':no_end_test';
1616
use lib 't/lib';
1717
use Helper;
1818
use Acceptance;

t/additional-tests-draft2020-12.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ no if "$]" >= 5.041009, feature => 'smartmatch';
1212
no feature 'switch';
1313
use open ':std', ':encoding(UTF-8)'; # force stdin, stdout, stderr into utf8
1414

15-
use Test::Warnings 'warnings', ':no_end_test';
15+
use Test2::Warnings 'warnings', ':no_end_test';
1616
use lib 't/lib';
1717
use Helper;
1818
use Acceptance;

t/additional-tests-draft7.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ no if "$]" >= 5.041009, feature => 'smartmatch';
1212
no feature 'switch';
1313
use open ':std', ':encoding(UTF-8)'; # force stdin, stdout, stderr into utf8
1414

15-
use Test::Warnings 'warnings', ':no_end_test';
15+
use Test2::Warnings 'warnings', ':no_end_test';
1616
use lib 't/lib';
1717
use Helper;
1818
use Acceptance;

t/checksums.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ no feature 'switch';
1212
use open ':std', ':encoding(UTF-8)'; # force stdin, stdout, stderr into utf8
1313

1414
use Test2::V0 -no_pragmas => 1;
15-
use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
15+
use if $ENV{AUTHOR_TESTING}, 'Test2::Warnings';
1616
use Digest::MD5 'md5_hex';
1717
use Path::Tiny;
1818

t/dialects.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ no if "$]" >= 5.041009, feature => 'smartmatch';
1212
no feature 'switch';
1313
use open ':std', ':encoding(UTF-8)'; # force stdin, stdout, stderr into utf8
1414

15-
use Test::Warnings qw(warnings :no_end_test had_no_warnings allow_warnings);
15+
use Test2::Warnings qw(warnings :no_end_test had_no_warnings allow_warnings);
1616
use Test::Fatal;
1717
use lib 't/lib';
1818
use Helper;

t/formats.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ no if "$]" >= 5.041009, feature => 'smartmatch';
1212
no feature 'switch';
1313
use open ':std', ':encoding(UTF-8)'; # force stdin, stdout, stderr into utf8
1414

15-
use Test::Warnings qw(warnings :no_end_test had_no_warnings allow_warnings);
15+
use Test2::Warnings qw(warnings :no_end_test had_no_warnings allow_warnings);
1616
use Test::Fatal;
1717
use JSON::Schema::Modern::Utilities qw(get_type);
1818

t/lib/Acceptance.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use Safe::Isa;
1616
use Feature::Compat::Try;
1717
use Path::Tiny;
1818

19-
use if $ENV{AUTHOR_TESTING}, 'Test::Warnings' => ':fail_on_warning'; # hooks into done_testing unless overridden
19+
use if $ENV{AUTHOR_TESTING}, 'Test2::Warnings' => ':fail_on_warning'; # hooks into done_testing unless overridden
2020
use Test::JSON::Schema::Acceptance 1.029;
2121
use Test::Memory::Cycle;
2222
use Test::File::ShareDir -share => { -dist => { 'JSON-Schema-Modern' => 'share' } };

t/lib/Helper.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ no feature 'switch';
1414
use open ':std', ':encoding(UTF-8)'; # force stdin, stdout, stderr into utf8
1515

1616
use Test2::V0 qw(!bag !bool !warnings), -no_pragmas => 1; # prefer Test::Deep's versions of these exports
17-
use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
17+
use if $ENV{AUTHOR_TESTING}, 'Test2::Warnings';
1818
use if $ENV{AUTHOR_TESTING} && (caller(2))[1] !~ /acceptance/, 'Test2::Plugin::BailOnFail';
1919
use Test::Deep qw(!array !hash !blessed); # import symbols: ignore, re etc
2020
use Test2::API 'context_do';

t/serialization.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ no feature 'switch';
1212
use open ':std', ':encoding(UTF-8)'; # force stdin, stdout, stderr into utf8
1313

1414
use Test::Needs qw(Sereal::Encoder Sereal::Decoder);
15-
use Test::Warnings qw(:no_end_test had_no_warnings);
15+
use Test2::Warnings qw(:no_end_test had_no_warnings);
1616
use lib 't/lib';
1717
use Helper;
1818

0 commit comments

Comments
 (0)