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

CI: Intermittent test failures on Python 2.7 due to standard output checks #2751

Closed
abn opened this issue Jul 30, 2020 · 2 comments
Closed
Labels
area/testing Related to the test suite kind/bug Something isn't working as expected

Comments

@abn
Copy link
Member

abn commented Jul 30, 2020

2020-07-30T12:06:45.9293095Z _____________________ test_add_git_constraint_with_extras ______________________
2020-07-30T12:06:45.9293242Z 
2020-07-30T12:06:45.9293418Z app = <tests.console.conftest.Application object at 0x7f85d0512210>
2020-07-30T12:06:45.9293614Z repo = <tests.console.conftest.Repository object at 0x7f85d0512250>
2020-07-30T12:06:45.9293806Z tester = <cleo.testers.command_tester.CommandTester object at 0x7f85d043a810>
2020-07-30T12:06:45.9294008Z tmp_venv = VirtualEnv("/tmp/poetry_uGE4M9/venv")
2020-07-30T12:06:45.9294100Z 
2020-07-30T12:06:45.9294280Z     def test_add_git_constraint_with_extras(app, repo, tester, tmp_venv):
2020-07-30T12:06:45.9294479Z         tester._command.set_env(tmp_venv)
2020-07-30T12:06:45.9294645Z     
2020-07-30T12:06:45.9294826Z         repo.add_package(get_package("pendulum", "1.4.4"))
2020-07-30T12:06:45.9295028Z         repo.add_package(get_package("cleo", "0.6.5"))
2020-07-30T12:06:45.9295222Z         repo.add_package(get_package("tomlkit", "0.5.5"))
2020-07-30T12:06:45.9295398Z     
2020-07-30T12:06:45.9295633Z         tester.execute("git+https://github.com/demo/demo.git[foo,bar]")
2020-07-30T12:06:45.9295834Z     
2020-07-30T12:06:45.9295998Z         expected = """\
2020-07-30T12:06:45.9296161Z     
2020-07-30T12:06:45.9296324Z     Updating dependencies
2020-07-30T12:06:45.9296495Z     Resolving dependencies...
2020-07-30T12:06:45.9296670Z     
2020-07-30T12:06:45.9296830Z     Writing lock file
2020-07-30T12:06:45.9296976Z     
2020-07-30T12:06:45.9297149Z     Package operations: 4 installs, 0 updates, 0 removals
2020-07-30T12:06:45.9297322Z     
2020-07-30T12:06:45.9298098Z       • Installing cleo (0.6.5)
2020-07-30T12:06:45.9298454Z       • Installing pendulum (1.4.4)
2020-07-30T12:06:45.9298796Z       • Installing tomlkit (0.5.5)
2020-07-30T12:06:45.9299152Z       • Installing demo (0.1.2 9cf87a2)
2020-07-30T12:06:45.9299323Z     """
2020-07-30T12:06:45.9299481Z     
2020-07-30T12:06:45.9299651Z >       assert expected.strip() == tester.io.fetch_output().strip()
2020-07-30T12:06:45.9300143Z E       AssertionError: assert 'Updating dep....1.2 9cf87a2)' == 'Updating depe....1.2 9cf87a2)'
2020-07-30T12:06:45.9300347Z E           Updating dependencies
2020-07-30T12:06:45.9300518Z E           Resolving dependencies...
2020-07-30T12:06:45.9300681Z E           
2020-07-30T12:06:45.9300850Z E           Writing lock file
2020-07-30T12:06:45.9301033Z E           
2020-07-30T12:06:45.9301207Z E           Package operations: 4 installs, 0 updates, 0 removals
2020-07-30T12:06:45.9301379Z E           
2020-07-30T12:06:45.9654993Z E             \u2022 Installing cleo (0.6.5)
2020-07-30T12:06:45.9655294Z E         +   \u2022 Installing tomlkit (0.5.5)
2020-07-30T12:06:45.9655557Z E             \u2022 Installing pendulum (1.4.4)
2020-07-30T12:06:45.9662479Z E         -   \u2022 Installing tomlkit (0.5.5)
2020-07-30T12:06:45.9662762Z E             \u2022 Installing demo (0.1.2 9cf87a2)
2020-07-30T12:06:45.9662916Z 
2020-07-30T12:06:45.9663173Z tests/console/commands/test_add.py:256: AssertionError

This might have been introduced with #2663 due the use of unicode charecters. The new installer should probably have a fallback output when dealing with non-fancy consoles.

@abn abn added kind/bug Something isn't working as expected status/triage This issue needs to be triaged area/testing Related to the test suite labels Jul 30, 2020
@neersighted
Copy link
Member

Pretty sure this has aged out of relevance especially given the end of Python 2.7 support in master.

@abn abn removed the status/triage This issue needs to be triaged label Mar 3, 2022
Copy link

github-actions bot commented Mar 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/testing Related to the test suite kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

2 participants