Debian Codegraph @

cpan/autodie/t/import-into.t

raw
1 #!/usr/bin/perl
2
3 use strict;
4 use warnings;
5
6 use Test::More;
7
8 BEGIN {
9 eval 'use Import::Into 1.002004';
10 plan skip_all => 'Test needs Import::Into >= 1.002004' if $@;
11 }
12
13 use FindBin;
14 use lib "$FindBin::Bin/lib";
15
16 use my::pragma qw(open);
17
18 plan tests => 1;
19
20 my::pragma->dont_die();
21
22 eval {
23 open(my $fd, '<', 'random-file');
24 };
25 ok($@, 'my::pragma can use import::into');
26