[DRE-maint] Bug#772462: ruby-minitest: breaks test/unit

Kenshi Muto kmuto at debian.org
Sun Dec 7 13:58:06 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Package: ruby-minitest
Severity: important
Version: 5.4.2-1

Dear Maintainer,

I noticed ruby-minitest installation broke Ruby programs
which used 'test/unit' on Sid or Jessie.

Here is a test log on pure Sid environment with using pbuilder.

- ---------------------------------------- without ruby-minitest
# irb
irb(main):001:0> require 'test/unit'
=> true
irb(main):002:0> 
Run options: 

# Running tests:

Finished tests in 0.005990s, 0.0000 tests/s, 0.0000 assertions/s.
0 tests, 0 assertions, 0 failures, 0 errors, 0 skips

ruby -v: ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu]
- ----------------------------------------

- ---------------------------------------- with ruby-minitest
# apt-get install ruby-minitest
 ...
Unpacking ruby-minitest (5.4.2-1) ...

# irb
irb(main):001:0> require 'test/unit'
Warning: you should require 'minitest/autorun' instead.
Warning: or add 'gem "minitest"' before 'require "minitest/autorun"'
From:
  /usr/lib/ruby/2.1.0/test/unit.rb:1:in `<top (required)>'
  (irb):1:in `irb_binding'
  /usr/lib/ruby/2.1.0/irb/workspace.rb:86:in `eval'
  /usr/lib/ruby/2.1.0/irb/workspace.rb:86:in `evaluate'
  /usr/lib/ruby/2.1.0/irb/context.rb:380:in `evaluate'
  /usr/lib/ruby/2.1.0/irb.rb:492:in `block (2 levels) in eval_input'
  /usr/lib/ruby/2.1.0/irb.rb:624:in `signal_status'
  /usr/lib/ruby/2.1.0/irb.rb:489:in `block in eval_input'
  /usr/lib/ruby/2.1.0/irb/ruby-lex.rb:247:in `block (2 levels) in each_top_level_statement'
  /usr/lib/ruby/2.1.0/irb/ruby-lex.rb:233:in `loop'
  /usr/lib/ruby/2.1.0/irb/ruby-lex.rb:233:in `block in each_top_level_statement'
  /usr/lib/ruby/2.1.0/irb/ruby-lex.rb:232:in `catch'
  /usr/lib/ruby/2.1.0/irb/ruby-lex.rb:232:in `each_top_level_statement'
  /usr/lib/ruby/2.1.0/irb.rb:488:in `eval_input'
  /usr/lib/ruby/2.1.0/irb.rb:397:in `block in start'
  /usr/lib/ruby/2.1.0/irb.rb:396:in `catch'
  /usr/lib/ruby/2.1.0/irb.rb:396:in `start'
  /usr/bin/irb:11:in `<main>'
MiniTest::Unit::TestCase is now Minitest::Test. From /usr/lib/ruby/2.1.0/test/unit/testcase.rb:8:in `<module:Unit>'
NameError: undefined method `_run_suite' for class `Test::Unit::Runner'
	from /usr/lib/ruby/2.1.0/test/unit.rb:676:in `<class:Runner>'
	from /usr/lib/ruby/2.1.0/test/unit.rb:261:in `<module:Unit>'
	from /usr/lib/ruby/2.1.0/test/unit.rb:15:in `<module:Test>'
	from /usr/lib/ruby/2.1.0/test/unit.rb:7:in `<top (required)>'
	from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from (irb):1
	from /usr/bin/irb:11:in `<main>'
irb(main):002:0>
- ----------------------------------------

- -- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Processed by Mailcrypt 3.5.9 <http://mailcrypt.sourceforge.net/>

iQIcBAEBCgAGBQJUhFziAAoJEB0hyD3EUuD8+JAP/R6wvrsj1hmGos3cD+RZwyBC
Z2mfRuHjZrhqxyqI/bcWCJJxCYDVVNqLJ7nPWrB6ZjurMjzQLD08MBuZNxJTa5oj
r7uZEQWlkoFikgC3GDxOXvPUTknLwW/2RqT6bIHL90kDQrDdGkighWKFL1ifo+wf
6gVP8t0h+MsXsUhZjnMMR30PURFeq3WrYtkMw9B9xOi4aDLOBqTy5UZvj/I4HwAs
JFs7vx3OahYokh9a032Pg9vmMs8OxxZcYpRDJoU9Q8pwSP+53NXVjpwTEVDprJjf
yDxeBS88U0gqeu6eaWn5afwRGyJ3J7z8pWNEmxmRNDuPBtxzwGy61RPtRNPWMKEo
FwqE5qqS6ZsB5CeU0x7ywg1NiVQXuLqrx6Toj33fDCVdAYmRT48xPM9vHVFs8Mxh
TvqxfKoPDopneQzJPR2DIr575JulXQeWwYjE2/FvCeb17OfkKyMDp3Dgd/IezD3J
4gmrgGfjsLjCzYta2ui4nrryqLprq6ccbeIhodKdCGmzKvTRIk/mlDWbVkL43AcC
8mtfdy+TLBj0Lk23db2cthydtS7/b7oU8JGEWSunfMx2aWRHDpn7xdudiAJbHUq0
4bKgJOEgjoBq7y1q0iHKcvsVbSkRkkpLDuWMocxGP2wjtx4k9mNjnlkZfmQoP23r
70cJloDlp2Cae4j4wiH/
=bOYN
-----END PGP SIGNATURE-----



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