question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

test_cli test failures

See original GitHub issue

I’m running the gTTS tests on Alpine Linux using Python 3.8 and the latest versions of all dependencies. Currently 2 tests in gtts/tests/test_cli.py are failing:

============================================================= FAILURES ==============================================================
__________________________________________________________ test_file_ascii __________________________________________________________

    def test_file_ascii():
        with LogCapture() as lc:
            result = runner_debug(['--file', textfile_ascii])
            log = logcapture_str(lc)
    
>       assert "text: %s" % text in log
E       assert ('text: %s' % "Can you make pink a little more pinkish can you make pink a little more pinkish, nor can you make the font bigger?\nHow much will it cost the website doesn't have the theme i was going for.") in 'No logging captured'

gtts/tests/test_cli.py:230: AssertionError
__________________________________________________________ test_file_utf8 ___________________________________________________________

    def test_file_utf8():
        with LogCapture() as lc:
            result = runner_debug(['--file', textfile_utf8])
            log = logcapture_str(lc)
    
>       assert "text: %s" % text_unicode in log
E       AssertionError: assert ('text: %s' % '这是一个三岁的小孩\n在讲述她从一系列照片里看到的东西。\n对这个世界, 她也许还有很多要学的东西,\n但在一个重要的任务上, 她已经是专家了:\n去理解她所看到的东西。') in 'No logging captured'

gtts/tests/test_cli.py:239: AssertionError

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pndurettecommented, Nov 12, 2020

Sorry, why did you close this @pndurette?

My mistake, reopening. Was doing a bit of a cleanup. New updates will come and should help with this—such as stripping all the Py7 stuff—will will also include a lot of test simplification and cleanup.

0reactions
PureTryOutcommented, Sep 15, 2022

I tried the tests again with 2.2.4 and these seem to pass now! 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Testicular Failure – Symptoms and Causes - Penn Medicine
Testicular failure occurs when the testicles can't produce sperm or male hormones, such as testosterone. Explore testicular failure and low testosterone ...
Read more >
Testicle injuries and conditions - Better Health Channel
If you injure your testicles (during sport, for example), always seek urgent medical advice. Perform testicular self-examination (TSE) regularly.
Read more >
Ruptured Testicle: Causes, Symptoms & Treatment
A testicle can rupture when damaged by blunt force or a penetrating injury. A ruptured testicle is a health emergency that often requires ......
Read more >
Undescended testicle - Symptoms and causes - Mayo Clinic
An undescended testicle (cryptorchidism ) is a testicle that hasn't moved into its proper position in the bag of skin hanging below the...
Read more >
test failure with 1.3 · Issue #156 · rfjakob/earlyoom - GitHub
I was testing this for inclusion in gentoo and found the tests failing. ... -j1 test cd tests ; go test -v ===...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found