-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
py3: fixes for doctests in cpython #26855
Comments
Commit: |
Branch: u/chapoton/26855 |
New commits:
|
Reviewer: Travis Scrimshaw |
comment:2
LGTM. |
comment:3
Why is this needed? - sage: test_del_dictitem_by_exact_value(D, ZZ, 2)
+ sage: test_del_dictitem_by_exact_value(D, ZZ, int(2)) If this change is really needed, I consider it a bug in Cython. |
comment:4
General rule about fixing Python 3 doctests: don't "fix" the doctest but fix the code such that the doctest remains working. |
comment:5
because in python 3, the hash must be a python int... |
comment:6
Replying to @fchapoton:
What do you mean? Are you talking about the output of a plain-Python |
comment:7
|
comment:8
I'm assuming that this is an exception raised by Cython. So I would like to understand why it works on Python 2 but not on Python 3. This is not only going to be relevant for this ticket, but possibly for many other Python 3 problems regarding Sage |
comment:9
My thought was that the coercion (conversion?) from |
comment:10
Replying to @tscrim:
I think it's at least something that we should investigate in general. |
comment:11
Possibly we are doing something wrong in |
Upstream: Reported upstream. No feedback yet. |
This comment has been minimized.
This comment has been minimized.
Changed branch from u/chapoton/26855 to u/jdemeyer/26855 |
comment:14
The problem with New commits:
|
Changed upstream from Reported upstream. No feedback yet. to Fixed upstream, but not in a stable release. |
Changed branch from u/jdemeyer/26855 to |
comment:16
This tickets were closed as fixed after the Sage 8.5 release. |
Reported upstream: cython/cython#2752
Upstream: Fixed upstream, but not in a stable release.
Component: python3
Author: Frédéric Chapoton
Branch/Commit:
8dde842
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/26855
The text was updated successfully, but these errors were encountered: