[DRE-maint] Bug#1090863: ruby-fakeweb: FTBFS with ruby-mocha 2: ERROR: Test "ruby3.1" failed: NoMethodError: undefined method `any_instance' for URI::RFC2396_Parser:Class

Antonio Terceiro terceiro at debian.org
Fri Dec 20 11:48:53 GMT 2024


Source: ruby-fakeweb
Version: 1.3.0+git20170806+dfsg1-3
Severity: important
Justification: FTBFS
Tags: trixie sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby-mocha-2

Hi,

We are trying to update ruby-mocha to version 2, currently available in experimental.
During a test rebuild, ruby-fakeweb was found to fail to build in that situation.

To reproduce this locally, you need to install ruby-mocha from experimental
on an unstable system or build chroot.

Relevant part (hopefully):
>   NoMethodError: undefined method `any_instance' for URI::RFC2396_Parser:Class
>   
>       parsing_object = URI.const_defined?(:Parser) ? URI::Parser.any_instance : URI
>                                                                 ^^^^^^^^^^^^^
> /build/reproducible-path/ruby-fakeweb-1.3.0+git20170806+dfsg1/test/test_utility.rb:78:in `test_uri_escape_delegates_to_uri_parser_when_available'
>      75:   end
>      76: 
>      77:   def test_uri_escape_delegates_to_uri_parser_when_available
>   => 78:     parsing_object = URI.const_defined?(:Parser) ? URI::Parser.any_instance : URI
>      79:     parsing_object.expects(:escape).with("string", /unsafe/).returns("escaped")
>      80:     assert_equal "escaped", FakeWeb::Utility.uri_escape("string", /unsafe/)
>      81:   end
> ===============================================================================
> 
> Finished in 0.181855606 seconds.
> -------------------------------------------------------------------------------
> 181 tests, 294 assertions, 0 failures, 1 errors, 0 pendings, 0 omissions, 0 notifications
> 99.4475% passed
> -------------------------------------------------------------------------------
> 995.30 tests/s, 1616.67 assertions/s
> ERROR: Test "ruby3.1" failed: 


The full build log is available at
https://people.debian.org/~terceiro/ruby-mocha-2/ruby-fakeweb_arm64-2024-12-20T10:24:38Z.build

This bug report is being filed as severity important, but will be raised to
serious once ruby-mocha is updated in unstable.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20241220/6035a7f7/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list