]> git.sur5r.net Git - i3/i3/blobdiff - testcases/lib/i3test.pm
testcases: correctly enable lexical pragmata
[i3/i3] / testcases / lib / i3test.pm
index d1e0ed7d568d8380e833d68bb7a3a9b352a85f36..ad598b846ccbf87a0ff3eadbd6bfc49d2aa42a6c 100644 (file)
@@ -66,11 +66,11 @@ use Data::Dumper;
 use AnyEvent::I3;
 use Time::HiRes qw(sleep);
 use Test::Deep qw(eq_deeply cmp_deeply cmp_set cmp_bag cmp_methods useclass noclass set bag subbagof superbagof subsetof supersetof superhashof subhashof bool str arraylength Isa ignore methods regexprefonly regexpmatches num regexponly scalref reftype hashkeysonly blessed array re hash regexpref hash_each shallow array_each code arrayelementsonly arraylengthonly scalarrefonly listmethods any hashkeys isa);
-use v5.10;
-use strict;
-use warnings;
 __
     $tester->bail_out("$@") if $@;
+    feature->import(":5.10");
+    strict->import;
+    warnings->import;
 
     @_ = ($class);
     goto \&Exporter::import;