Skip to content

Commit

Permalink
t/internal.t: Remove TODO tests with #61 closed
Browse files Browse the repository at this point in the history
Signed-off-by: Niels Thykier <[email protected]>
  • Loading branch information
nthykier committed Dec 29, 2014
1 parent 53cfa65 commit 1c9d5ec
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions t/internal.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use Scalar::Util qw(blessed);

use constant NO_SUCH_FILE => "this_file_or_dir_had_better_not_exist_XYZZY";

use Test::More tests => 9;
use Test::More tests => 7;

use Fatal();

Expand Down Expand Up @@ -41,12 +41,6 @@ like($@, qr{:lexical must be used as first}, ":lexical must come first");
eval { chdir(NO_SUCH_FILE); };
my $err = $@;
like ($err, qr/^Can't chdir/, "Lexical fatal chdir");
TODO: {
local $TODO = 'Fatal should not (but does) throw autodie::exceptions';
is(blessed($err), undef,
"Fatal does not throw autodie::exceptions");
}

{
no Fatal qw(:lexical chdir);
eval { chdir(NO_SUCH_FILE); };
Expand All @@ -56,11 +50,6 @@ like($@, qr{:lexical must be used as first}, ":lexical must come first");
eval { chdir(NO_SUCH_FILE); };
$err = $@;
like ($err, qr/^Can't chdir/, "Lexical fatal chdir returns");
TODO: {
local $TODO = 'Fatal should not (but does) throw autodie::exceptions';
is(blessed($err), undef,
"Fatal does not throw autodie::exceptions");
}
}

eval { chdir(NO_SUCH_FILE); };
Expand Down

0 comments on commit 1c9d5ec

Please sign in to comment.