Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid warning about clashing imported subroutine #5781

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

perlpunk
Copy link
Contributor

Test::Most exports everything from several other modules, including Test::Deep, which exports 'any'.
This lead to:

Prototype mismatch: sub main::any: none vs (&@)

I saw the warning in the reported issue
https://progress.opensuse.org/issues/164239

Test::Most exports everything from several other modules, including Test::Deep,
which exports 'any'.
This lead to:

    Prototype mismatch: sub main::any: none vs (&@)

Moving Test::Warnings to the top will make the test fail on such warnings in
the future.

I saw the warning in the reported issue
https://progress.opensuse.org/issues/164239
Copy link
Member

@okurz okurz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I was working on the same thing. See f28fcd7 . My commit is actually 3h older than yours but you were the first to open a PR ;)

@okurz okurz merged commit e9a2e46 into os-autoinst:master Jul 20, 2024
36 of 38 checks passed
@perlpunk perlpunk deleted the import-any branch July 22, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants