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

provide empty import on Mouse::Deprecated for imported Moose test #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

haarg
Copy link

@haarg haarg commented Jul 22, 2023

One of the translated tests imported from Moose includes a line

use Mouse::Deprecated -api_version => '1.07';

Our tests set up a fake Mouse::Deprecated package to ignore this. But newer versions of perl will no longer ignore the arguments passed to the undefined import method, and instead will throw an error.

Add an empty import method to entirely ignore these arguments.

One of the translated tests imported from Moose includes a line

use Mouse::Deprecated -api_version => '1.07';

Our tests set up a fake Mouse::Deprecated package to ignore this. But
newer versions of perl will no longer ignore the arguments passed to the
undefined import method, and instead will throw an error.

Add an empty import method to entirely ignore these arguments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant