From 28841e115284f38b5edb862f25ea5ad02a79d3a2 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Sun, 30 Jul 2023 07:58:52 +0200 Subject: [PATCH] remove extraneous arguments to use_ok use_ok does not accept a test name, but passes its extra arguments to the module's import method. Perl has always ignored these extraneous arguments, but future versions are intending to make it an error to pass arguments to an undefined import method. --- t/21_wraperror.t | 2 +- t/30_legacy.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/t/21_wraperror.t b/t/21_wraperror.t index 242a0ee..c64455a 100644 --- a/t/21_wraperror.t +++ b/t/21_wraperror.t @@ -11,7 +11,7 @@ BEGIN { plan tests => 12; - use_ok 'Net::Twitter', qw/Legacy/; + use_ok 'Net::Twitter'; } my $nt = Net::Twitter->new(ssl => 0, username => 'me', password => 'secret'); diff --git a/t/30_legacy.t b/t/30_legacy.t index 190257b..64cfc58 100644 --- a/t/30_legacy.t +++ b/t/30_legacy.t @@ -11,7 +11,7 @@ BEGIN { plan tests => 5; - use_ok 'Net::Twitter', qw/Legacy/; + use_ok 'Net::Twitter'; } my $nt = Net::Twitter->new(ssl => 0, username => 'me', password => 'secret');