X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2Flib%2FScope%2FUpper%2FTestGenerator.pm;h=b4f6e1b6762d26e8aa179c468adbf54da8e70b6f;hb=eefb9e3f4b67e0aa0e8c3e705d7f7010a49f0540;hp=c71b8f36f2f7c925f79b0679a2b56fe8501e28f6;hpb=5f285d96032cb5cf1e24f3573f3a3c1a35160e1b;p=perl%2Fmodules%2FScope-Upper.git diff --git a/t/lib/Scope/Upper/TestGenerator.pm b/t/lib/Scope/Upper/TestGenerator.pm index c71b8f3..b4f6e1b 100644 --- a/t/lib/Scope/Upper/TestGenerator.pm +++ b/t/lib/Scope/Upper/TestGenerator.pm @@ -39,6 +39,11 @@ my %exports = ( ); sub import { + if ("$]" >= 5.017_011) { + require warnings; + warnings->unimport('experimental::smartmatch'); + } + if ("$]" >= 5.010_001) { require feature; feature->import('switch');