-
Notifications
You must be signed in to change notification settings - Fork 12
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
Test t/bson.t failing (with Mojolicious 8.50?) #36
Comments
I encountered this failure while testing Mango on FreeBSD-12 against a perl very close to 5.32-RC0.
Can you investigate? Thank you very much. |
This is triggered by mojolicious/mojo@52a237a. |
The Mojolicious change adds
As a result Coincidentely, another t/base.t test compares the parsed value against So the question is why the feature bit leaks. And how to fix it. |
Actually it's simple. Mojo::Base that is used from both /lib/Mango/BSON.pm a t/base.t does
|
A plain top-level
|
Mojo::Base 0.50 enables unicode_strings feature in the scope where it used from. As a result, deserializing a regular expression injects qr//u flag to regexp object although the was no such flags in the deserialized BSON. The same issue repeats in t/bson.t when shuffling with the regular expressions. The consequence is that a t/bson.t test fails. This patch fixes it with disabling unicode_strings feature where needed. oliwer#36
The test t/bson.t started failing recently. It seems all fails happened with Mojolicious 8.50 so far.
Sample fail reports can be found via the matrix: http://fast-matrix.cpantesters.org/?dist=Mango%201.30
Picking the first one that arrived at cpantesters: http://www.cpantesters.org/cpan/report/482d3238-a223-11ea-bf34-d6ec90b5e442
The text was updated successfully, but these errors were encountered: