sub MODIFY_CODE_ATTRIBUTES {
my ($class, $code) = @_;
- ::ok(!Class::MOP::get_code_info($code), "no name for a coderef that's still compiling");
+ my @info = Class::MOP::get_code_info($code);
+ ::is_deeply(\@info, [], "no name for a coderef that's still compiling");
return ();
}