Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d02024e

Browse filesBrowse files
authored
Merge pull request #9142 from tacaswell/mnt_memleak_future_numpy
MNT: future numpy only takes ints as index
2 parents b722810 + bcafaf9 commit d02024e
Copy full SHA for d02024e

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎unit/memleak.py

Copy file name to clipboardExpand all lines: unit/memleak.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
def run_memleak_test(bench, iterations, report):
2121
tracemalloc.start()
2222

23-
starti = min(50, iterations / 2)
23+
starti = min(50, iterations // 2)
2424
endi = iterations
2525

2626
malloc_arr = np.empty((endi,), dtype=np.int64)
@@ -77,6 +77,7 @@ def run_memleak_test(bench, iterations, report):
7777

7878
if not report.endswith('.pdf'):
7979
report = report + '.pdf'
80+
fig.tight_layout()
8081
fig.savefig(report, format='pdf')
8182

8283

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.