Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-42142: Skip select ttk tests when on Ubuntu#23156

Closed
E-Paine wants to merge 6 commits into
python:masterpython/cpython:masterfrom
E-Paine:wait-visibilityE-Paine/cpython:wait-visibilityCopy head branch name to clipboard
Closed

bpo-42142: Skip select ttk tests when on Ubuntu#23156
E-Paine wants to merge 6 commits into
python:masterpython/cpython:masterfrom
E-Paine:wait-visibilityE-Paine/cpython:wait-visibilityCopy head branch name to clipboard

Conversation

@E-Paine

@E-Paine E-Paine commented Nov 4, 2020

Copy link
Copy Markdown
Contributor

Note: This is only designed as a temporary solution to avoid the inconvenience inevitably caused to other (unrelated) PRs.

Note: This will apply (I believe) for all Ubuntu machines (it will certainly affect Azure Pipelines, Travis CI & the Github Action)

https://bugs.python.org/issue42142

@E-Paine

E-Paine commented Nov 5, 2020

Copy link
Copy Markdown
Contributor Author

@terryjreedy or @serhiy-storchaka would you mind please reviewing this PR which will skip the LabeledScaleTest.test_resize and ComboboxTest.test_virtual_event tests when on Ubuntu. As noted, this is only designed as a temporary fix until a more permanent solution for the failures is found.


def ubuntu():
try:
return "Ubuntu" in os.uname().version

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice hack 👍

Too bad we don't have os-release support in the platform module. I had a working patch but I closed it after I was harassed by systemd haters.

@E-Paine

E-Paine commented Nov 22, 2020

Copy link
Copy Markdown
Contributor Author

@serhiy-storchaka please could you review this PR or at least give feedback on the approach used because this issue is clearly annoying others (hence @tiran's report of it)

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not like that tests are always skipped on Ubuntu. They are passed successfully on my computer, why should they be skipped?

@E-Paine

E-Paine commented Nov 23, 2020

Copy link
Copy Markdown
Contributor Author

They are passed successfully on my computer, why should they be skipped?

Because, as far as I can tell, we cannot distinguish between the bots and a 'real' machine. This disabled it on the relevant bots while trying to keep the skips to as small a number of machines as possible (that's why they are skipped on Ubuntu rather than Linux). I agree it is a shame to affect perfectly good machines, and am open to other solutions, but the only other (that doesn't skip the relevant tests) I could come up with was to use threads to timeout wait_visibility gracefully after a second or so.

@tiran

tiran commented Nov 24, 2020

Copy link
Copy Markdown
Member

I added a parser for freedesktop.org os-release in #23492 . You can use the feature to properly identify Ubuntu and its derivatives: info["ID"] == "ubuntu" or "ubuntu" in info.get("ID_LIKE", ())

@E-Paine E-Paine closed this Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.