Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
improved doctest, gc.collect should be run before the test as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Feb 14, 2020
1 parent f44afa2 commit e9b3201
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sage/geometry/polyhedron/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5506,6 +5506,7 @@ def face_lattice(self):
Test that computing the face lattice does not lead to a memory leak::
sage: import gc
sage: _ = gc.collect()
sage: P = polytopes.cube()
sage: a = P.face_lattice()
sage: n = get_memory_usage()
Expand Down

0 comments on commit e9b3201

Please sign in to comment.