Skip to content

Commit 7f42517

Browse files
lkollarAA-Turner
andauthored
Update Lib/test/test_profiling/test_sampling_profiler.py
Co-authored-by: Adam Turner <[email protected]>
1 parent 5d3d2cb commit 7f42517

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_profiling/test_sampling_profiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1826,7 +1826,7 @@ def test_valid_output_formats(self):
18261826
valid_formats = ["pstats", "collapsed", "flamegraph"]
18271827

18281828
tempdir = tempfile.TemporaryDirectory(delete=False)
1829-
self.addCleanup(lambda x: shutil.rmtree(x), tempdir.name)
1829+
self.addCleanup(shutil.rmtree, tempdir.name)
18301830

18311831

18321832
with contextlib.chdir(tempdir.name):

0 commit comments

Comments
 (0)