Skip to content

New warning in Perl 5.40 causes one test to fail #51

@book

Description

@book

Perl 5.40 added a new warning, which is tripping the t/00_api.t test script: Attempt to call undefined import method with arguments ("PARTITION" ...) via package "Kafka::MockIO" (Perhaps you forgot to load the package?)

#   Failed test 'no warnings'
#   at /tmp/pakket-build-bootstrap-vJGM8X/lib/perl5/Test/Builder.pm line 187.
# There were 1 warning(s)
#     Previous test 6 'use Kafka::IO;'
#     Attempt to call undefined import method with arguments ("PARTITION" ...) via package "Kafka::MockIO" (Perhaps you forgot to load the package?) at t/00_api.t line 359.
#  at t/00_api.t line 359.
# 	main::BEGIN() called at t/00_api.t line 359
# 	eval {...} called at t/00_api.t line 359
# 	eval 'package main;
# BEGIN { ${^WARNING_BITS} = $args[-1] if defined $args[-1] }
# #line 359 t/00_api.t
# use Kafka::MockIO @{$args[0]};
# 1;
# '

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions