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

1.3.5 - make test fails with Python 2.7.10 #2268

Closed
stroeder opened this issue Jan 25, 2016 · 13 comments
Closed

1.3.5 - make test fails with Python 2.7.10 #2268

stroeder opened this issue Jan 25, 2016 · 13 comments

Comments

@stroeder
Copy link

Tried to package 1.3.5 for Python 2.7.10.

But "make test" fails:
https://build.opensuse.org/build/home:stroeder:branches:devel:languages:python/openSUSE_Tumbleweed/x86_64/python-Sphinx/_log

@shimizukawa
Copy link
Member

Thanks for your reporting, I'll take a look.

BTW, the link you pasted indicate anonymous_user(Anonymous user is not allowed here - please login):

@shimizukawa
Copy link
Member

Memo:

@tk0miya
Copy link
Member

tk0miya commented Jan 25, 2016

FYI:
I try to reproduce with MacOSX 10.9.5 and Sphinx-1.3.5 and Python-2.7.10.
But make test works fine:

$ python --version
Python 2.7.10
$ make test
Checking dependencies...
Temporary files will be placed in /Users/tkomiya/work/sphinx/tests/build.
Running Sphinx test suite (with Python 2.7.10)...
..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S..................................................
----------------------------------------------------------------------
Ran 773 tests in 102.956s

@shimizukawa
Copy link
Member

(venv)vagrant@vagrant-ubuntu-wily-64:~/sphinx-1.3.5$ make test
Checking dependencies...
Temporary files will be placed in /home/vagrant/sphinx-1.3.5/tests/build.
Running Sphinx test suite (with Python 2.7.10)...
.......................................................S...........................................................................................................................................................................................................................................................................................................................................................................S.S...............S................................................................................................................................S......................S..................................................
----------------------------------------------------------------------
Ran 639 tests in 52.597s

OK (SKIP=6)

(venv)vagrant@vagrant-ubuntu-wily-64:~/sphinx-1.3.5$ python -c "import sys;print(sys.maxunicode)"
1114111

@shimizukawa
Copy link
Member

@stroeder please let me know the detail of error.

@mitya57
Copy link
Contributor

mitya57 commented Jan 25, 2016

@shimizukawa I'm getting failures now too (when trying to package Sphinx 1.3.5), here are the errors: https://gist.github.com/mitya57/06fdea89516262eae831

This is with Python 2.7.11, however I built Sphinx 1.3.4 with the same Python previously. So the regression is somewhere else (maybe in Sphinx itself)?

@stroeder
Copy link
Author

Find failure log attached.

Sphinx-1.3.5-test.zip

@shimizukawa
Copy link
Member

@stroeder @mitya57 It seems it depends on 5574aba
Please update your Pygments version 2.1 and re-testing.

@mitya57
Copy link
Contributor

mitya57 commented Jan 25, 2016

@shimizukawa Right, that's what I have just figured out myself. With 2.1 it works fine. Thanks!

@stroeder
Copy link
Author

I confirm that updating to Pygments 2.1 fixed the issue.

@birkenfeld
Copy link
Member

Hm, this is not optimal - Sphinx tests should not depend on specific Pygments versions since we do not require 2.1.

I probably wrote these tests, so I'm not blaming anyone else. But it would be nice to rewrite them anyway.

@tk0miya
Copy link
Member

tk0miya commented Jan 26, 2016

+1 for rewriting. It makes testcases robust :-)

@tk0miya
Copy link
Member

tk0miya commented Mar 3, 2017

Note:
To be robust, we should not inspect the results of pygments. This is testcases for Sphinx, not for pygments. So we should not be care of the highlighted codes in our tests.

@AA-Turner AA-Turner added this to the some future version milestone Sep 29, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants