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
Python 3.4 fixes #4758
Python 3.4 fixes #4758
Conversation
'import lxml' was succeeding, but 'from lxml import html' was failing.
Changes to string formatting mean slicing in EvalFormatter now works.
@@ -51,8 +52,8 @@ | |||
def test_citation2latex(): | |||
"""Are citations parsed properly?""" | |||
try: | |||
import lxml | |||
from lxml import html #analysis:ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is not really related to Python 3.4, it was just that the test was out of line with the implementation.
I guess the fixed test should be backported to 1.x, right? |
Yes, I think so. |
I don't really understand what the point of the original test is, but I read it as having insufficient arguments (ns not passed) or effectively a name error (a is not defined), and so its not clear why it should be changed for 3.4. Can we shed more light on these tests via comments or docstrings? |
The docstrings of the formatter classes have some more description, but should possibly be updated. In the format strings, Hopefully this means that once we rely on Python 3.4 or above, we can drop |
thanks for the explanation Thomas.
Can we add that as a |
Good idea, done. |
Thanks for thinking of the posterity: let's call it "Seventh Generation Development" |
7GD or SGD to be TLA compliant |
Future release codename: "IPython: The Next Generation"? |
concerning backport to 1.x, I'm trying to run the testsuite with 3.4b2 and there are a lot more failures. E.g. the parametric tests are all broken, the removal is backportable but there are probably still more failures than I can handle in time. |
I'm guessing the failures are just problems with the tests, not things that will actually break real usage? I doubt we'll bother about making all the tests pass with 1.x on Python 3.4 if doing so would take much effort, but we'd probably accept fixes for actually running 1.x on 3.4. |
I'll merge this later today or tomorrow unless anyone stops me. |
Python 3.4 fixes
I ran the test suite under Python 3.4b1 and hit a couple of inconsequential test failures.