X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F05-words.t;h=6971da61f9a1130a507f3302a1c880b76cd97ee3;hb=eefb9e3f4b67e0aa0e8c3e705d7f7010a49f0540;hp=8a8a583d5d34dc40d663ec0884b76495132e77d5;hpb=5f285d96032cb5cf1e24f3573f3a3c1a35160e1b;p=perl%2Fmodules%2FScope-Upper.git diff --git a/t/05-words.t b/t/05-words.t index 8a8a583..6971da6 100644 --- a/t/05-words.t +++ b/t/05-words.t @@ -210,6 +210,12 @@ SKIP: { if "$]" < 5.010; eval <<'TEST_GIVEN'; + BEGIN { + if ("$]" >= 5.017_011) { + require warnings; + warnings->unimport('experimental::smartmatch'); + } + } use feature 'switch'; my $desc = 'given'; my $base = HERE; @@ -224,6 +230,12 @@ TEST_GIVEN diag $@ if $@; eval <<'TEST_GIVEN_WHEN'; + BEGIN { + if ("$]" >= 5.017_011) { + require warnings; + warnings->unimport('experimental::smartmatch'); + } + } use feature 'switch'; my $desc = 'when in given'; my $base = HERE; @@ -241,6 +253,12 @@ TEST_GIVEN_WHEN diag $@ if $@; eval <<'TEST_GIVEN_DEFAULT'; + BEGIN { + if ("$]" >= 5.017_011) { + require warnings; + warnings->unimport('experimental::smartmatch'); + } + } use feature 'switch'; my $desc = 'default in given'; my $base = HERE; @@ -258,6 +276,12 @@ TEST_GIVEN_DEFAULT diag $@ if $@; eval <<'TEST_FOR_WHEN'; + BEGIN { + if ("$]" >= 5.017_011) { + require warnings; + warnings->unimport('experimental::smartmatch'); + } + } use feature 'switch'; my $desc = 'when in for'; my $base = HERE;