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
PHILIP/Test-Spec-0.47.tar.gz fails with 1.301001071 #474
Comments
Looks like a conflict. Test::More now exports a context function, looks like this module also uses something with that name. Not sure best solution here. Will look deeper when I can get to a computer. |
Maybe releated: ADAMK/Aspect-1.04.tar.gz The diag there is:
|
Aspect is fixed simply by moving 'context()' to not be exported by default, which is fine since it is new. This change also removes a warning from Test-Spec, but it does not fix it. I have dug deeper and found the problem. define.t:
The test that fails tries to hide 2 tests by replacing the Test::Builder singleton with a stub class that simply returns on all sub calls (autoload). This is a problem because one of the key goals of the alphas is to kill the singleton and the problems having a monolithic singleton caused. Instead there is a single minimal singleton that has 1 job, funnel results to the right place. It also has a built-in api that lets you do the kinds of thing this test wants to do, ie hide or intercept results. Basically the fact that authors had to do this kind of hackery at all is the very limitation of Test::Builder that we are hoping to overcome with the alphas. I can think of one possible fix on our end, but I am not sure if it might cause other issues. The fix would be to have Test::Stream 'notice' that the singleton has been replaced with an object that is not a subclass or instance of Test::Builder, if it detects this it can try to go through it... But I am pretty sure this would do the following:
I think the better option would be to ask the author to make a small change to their code: define.t:
I have confirmed this solves the problem. I will submit it to the author. |
The Alpha branch of Test-Simple and friends is quickly approaching stable status. It is already merged into blead perl to find issues like this. This patch makes your test suite pass with both old and new versions of Test::Builder. Please see Test-More/test-more#474 for the discussion of this issue.
Closing this ticket in favor of the module specific pull request: kingpong/perl-Test-Spec#18 |
https://rt.cpan.org/Ticket/Display.html?id=100034 Added an RT ticket since it is their prefered tracker method. I forgot pull requests were glorified issues |
Seems to fails since 1.301001_051 or thereabouts. Sample fail report:
http://www.cpantesters.org/cpan/report/47392685 # 5.21.5
http://www.cpantesters.org/cpan/report/47392754 # 5.20.1
HTH&&Thanks
The text was updated successfully, but these errors were encountered: