We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd11e59 commit 6889534Copy full SHA for 6889534
1 file changed
tests/test_line_profiler.py
@@ -667,9 +667,9 @@ def sum_n_cb(n):
667
assert sum_n_cb(n) == .25 * (n * (n + 1)) ** 2
668
669
# Inspect the timings
670
- t1 = {fname: entries
+ t1 = {fname.rpartition('.')[-1]: entries
671
for (*_, fname), entries in prof1.get_stats().timings.items()}
672
- t2 = {fname: entries
+ t2 = {fname.rpartition('.')[-1]: entries
673
for (*_, fname), entries in prof2.get_stats().timings.items()}
674
assert set(t1) == {'sum_n_sq', 'sum_n'}
675
assert set(t2) == {'sum_n_cb', 'sum_n'}
0 commit comments