]> git.vpit.fr Git - perl/modules/Scope-Upper.git/commitdiff
Don't enable the 'switch' feature in tests starting perl 5.37.10
authorVincent Pit <vpit@cpan.org>
Thu, 20 Aug 2026 15:55:36 +0000 (17:55 +0200)
committerVincent Pit <vpit@cpan.org>
Thu, 20 Aug 2026 15:55:36 +0000 (17:55 +0200)
As given/when was then deprecated and no longer tested.

t/lib/Scope/Upper/TestGenerator.pm

index df175acf540437ed4f509e9a796fb56617fdd819..1448abdf371a0ded7e046fda6bda10348db2ee2a 100644 (file)
@@ -44,7 +44,7 @@ sub import {
   warnings->unimport('experimental::smartmatch');
  }
 
- if ("$]" >= 5.010_001) {
+ if ("$]" >= 5.010_001 && "$]" < 5.037_010) {
   require feature;
   feature->import('switch');
  }