Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 916584b

Browse files
committed
Remove toplevel unit/ directory.
- Move `memleak.py` and `compare_backend_driver_result.py` to tools/. Removed some Py2 workarounds there. - `ellipse_large.py` currently fails with RuntimeError: adjustable='datalim' is not allowed when both axes are shared. IOW we're not even bothering keeping it up to date, so remove it. - `legend_unit.py` is basically covered by `test_legend.py`. - `longs_test.py` should be covered by `test_simplification.py::test_overflow`. - `mlab_unit.py` has never been ported to Py3 (`import StringIO`), and most of mlab is on its way out anyways, so remove it. - `threading_test.py` could be converted into a proper unit test but it would be a rather slow one (checking that there is no race condition by running a bunch of iterations) so I'd rather not do it unless it turns out we're reintroducing race conditions.
1 parent 911a1e9 commit 916584b

File tree

7 files changed

+1
-338
lines changed

7 files changed

+1
-338
lines changed

unit/memleak.py renamed to tools/memleak.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22

33
import gc
44
from io import BytesIO
5-
6-
try:
7-
import tracemalloc
8-
except ImportError:
9-
raise ImportError("This script requires Python 3.4 or later")
5+
import tracemalloc
106

117
try:
128
import psutil

unit/ellipse_large.py

Lines changed: 0 additions & 139 deletions
This file was deleted.

unit/legend_unit.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

unit/longs_test.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

unit/mlab_unit.py

Lines changed: 0 additions & 82 deletions
This file was deleted.

unit/threading_test.py

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)