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

Test failures with Ruby2.7 #13

Closed
utkarsh2102 opened this issue Apr 5, 2020 · 1 comment
Closed

Test failures with Ruby2.7 #13

utkarsh2102 opened this issue Apr 5, 2020 · 1 comment

Comments

@utkarsh2102
Copy link

Hi,

There are following test failures with Ruby 2.7:

┌──────────────────────────────────────────────────────────────────────────────┐
│ Run tests for ruby2.7 from debian/ruby-tests.rake                            │
└──────────────────────────────────────────────────────────────────────────────┘

RUBYLIB=. GEM_PATH=/home/utkarsh/debian/ruby-team/espeak/ruby-espeak/debian/ruby-espeak/usr/share/rubygems-integration/all:/home/utkarsh/.gem/ruby/2.7.0:/var/lib/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0 ruby2.7 -S rake -f debian/ruby-tests.rake
/usr/bin/ruby2.7 -w -I"test"  "/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/rake_test_loader.rb" "test/cases/speech_test.rb" "test/cases/voice_test.rb" "test/test_helper.rb" -v
Loaded suite /usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/rake_test_loader
Started
SpeechTest: 
  test_save:				.: (0.022006)
VoiceTest: 
  test_all:				F
===============================================================
     11:   def test_all
     12:     all_voices = Voice.all
     13:     assert all_voices.size > 0
  => 14:     assert %w(M F).include?(all_voices.first.gender)
     15:   end
     16: 
     17:   def test_find_by_language
/home/utkarsh/debian/ruby-team/espeak/ruby-espeak/test/cases/voice_test.rb:14:in `test_all'
Failure: test_all(VoiceTest): <false> is not true.
===============================================================
: (0.028455)
  test_find_by_language:		E
===============================================================
     16: 
     17:   def test_find_by_language
     18:     voice = Voice.find_by_language('en')
  => 19:     assert_equal 'en', voice.language
     20:   end
     21: end
/home/utkarsh/debian/ruby-team/espeak/ruby-espeak/test/cases/voice_test.rb:19:in `test_find_by_language'
Error: test_find_by_language(VoiceTest): NoMethodError: undefined method `language' for nil:NilClass
===============================================================
: (0.004145)

Finished in 0.055004519 seconds.
---------------------------------------------------------------
3 tests, 4 assertions, 1 failures, 1 errors, 0 pendings, 0 omissions, 0 notifications
33.3333% passed
---------------------------------------------------------------
54.54 tests/s, 72.72 assertions/s
rake aborted!
Command failed with status (1): [ruby -w -I"test"  "/usr/share/rubygems-integration/all/gems/rake-13.0.1/lib/rake/rake_test_loader.rb" "test/cases/speech_test.rb" "test/cases/voice_test.rb" "test/test_helper.rb" -v]
/usr/share/rubygems-integration/all/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => default
(See full trace by running task with --trace)
ERROR: Test "ruby2.7" failed. Exiting.

Any clue on how to fix this?

@dejan
Copy link
Owner

dejan commented Sep 12, 2021

Apparently csv, the bundled Ruby gem introduced some change in a 2.6.x version that breaks the parsing of the espeak --voices output (to be fair, csv parser was possible not the best choice in the first place). Fix is in #15

@dejan dejan closed this as completed Sep 12, 2021
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

No branches or pull requests

2 participants