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

pytest: update depends, adopt #24929

Merged
merged 2 commits into from
Sep 16, 2020
Merged

pytest: update depends, adopt #24929

merged 2 commits into from
Sep 16, 2020

Conversation

Chocimier
Copy link
Member

No description provided.

@sgn
Copy link
Member

sgn commented Sep 16, 2020

Bitten by the missing iniconfig just now.

@sgn
Copy link
Member

sgn commented Sep 16, 2020

Anyway, the check is still failing because pytest people seems to assume that their tests is running with not-dumb terminal.

FAILED testing/io/test_terminalwriter.py::test_code_highlight[with markup and code_highlight]
FAILED testing/test_terminal.py::test_color_yes - Failed: fnmatch: '\x1b[[]1m...
FAILED testing/test_terminal.py::TestCodeHighlight::test_code_highlight_simple
FAILED testing/test_terminal.py::TestCodeHighlight::test_code_highlight_continuation

Maybe just ignore it?

diff --git a/srcpkgs/python3-pytest/template b/srcpkgs/python3-pytest/template
index 48b4d043c9..646b638731 100644
--- a/srcpkgs/python3-pytest/template
+++ b/srcpkgs/python3-pytest/template
@@ -28,7 +28,8 @@ post_patch() {
 }
 
 do_check() {
-	PYTHONPATH=$(pwd)/build/lib python3 -m pytest
+	PYTHONPATH=$(pwd)/build/lib python3 -m pytest \
+		-k 'not test_color_yes and not test_code_highlight'
 }
 
 post_install() {

@Chocimier
Copy link
Member Author

@sgn Thanks, i wanted to let them fail, but skipping is better indeed.

@Chocimier Chocimier deleted the pytest branch September 22, 2020 18:49
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants