Opened 5 months ago

Closed 5 months ago

Last modified 4 months ago

#28002 closed defect (fixed)

py3: last test in tests/cmdline.py

Reported by: jhpalmieri Owned by:
Priority: major Milestone: sage-8.9
Component: python3 Keywords:
Cc: Merged in:
Authors: John Palmieri Reviewers: Frédéric Chapoton
Report Upstream: N/A Work issues:
Branch: 8712a2f (Commits) Commit: 8712a2fab3fbab9944a4a08fc670515bd0b39ff2
Dependencies: Stopgaps:

Description

The fix is to ignore deprecation warnings about collections.abc. This already done in src/sage/all.py. At some point, this should be fixed throughout the Sage library, but that's for another ticket.

Change History (10)

comment:1 Changed 5 months ago by jhpalmieri

  • Branch set to u/jhpalmieri/cmdline-py3

comment:2 Changed 5 months ago by jhpalmieri

  • Commit set to 8712a2fab3fbab9944a4a08fc670515bd0b39ff2
  • Status changed from new to needs_review

New commits:

8712a2ftrac 28002: in sage-startuptime.py, ignore collections.abc deprecation

comment:3 Changed 5 months ago by jhpalmieri

Regarding imports of collections.abc and the deprecation warning: it seems to come as much from places like matplotlib than from the actual Sage library. So maybe the problem will get fixed as we update the various Sage packages.

comment:4 Changed 5 months ago by chapoton

  • Reviewers set to Frédéric Chapoton
  • Status changed from needs_review to positive_review

ok, thx. Is there a way to make sure that sage itself is not responsible for any of these warnings ?

comment:5 Changed 5 months ago by jhpalmieri

Both

grep -R "import collections.*abc" src/sage src/sage_setup src/doc

and

grep -R "from collections.*import.*abc" src/sage src/sage_setup src/doc

come up empty. I tried turning off the warnings in src/sage/all.py, and when I ran a few doctests, I got a warning from matplotlib. I don't know what else to try to do to check.

comment:6 follow-up: Changed 5 months ago by chapoton

Ok, then we will see later when we upgrade matplotlib.

By the way, do you know "git grep" ? Useful tool, in my opinion. Only search in the files under git control.

Last edited 5 months ago by chapoton (previous) (diff)

comment:7 in reply to: ↑ 6 Changed 5 months ago by jhpalmieri

Replying to chapoton:

Ok, then we will see later when we upgrade matplotlib.

By the way, do you know "git grep" ? Useful tool, in my opinion. Only search in the files under git control.

No, I didn't know, thanks for pointing it out.

Last edited 5 months ago by jhpalmieri (previous) (diff)

comment:8 Changed 5 months ago by slelievre

See also #28012.

comment:9 Changed 5 months ago by vbraun

  • Branch changed from u/jhpalmieri/cmdline-py3 to 8712a2fab3fbab9944a4a08fc670515bd0b39ff2
  • Resolution set to fixed
  • Status changed from positive_review to closed

comment:10 Changed 4 months ago by embray

  • Milestone changed from sage-8.8 to sage-8.9

Not in Sage 8.8. Let's please to try keep tickets' milestones related to the release in which we actually intend to include them, and in particular the release in which they were actually included, especially when closing tickets.

Note: See TracTickets for help on using tickets.