File: 0003-Remove-testsuite-artefact.patch

package info (click to toggle)
python-papermill 2.6.0-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,216 kB
  • sloc: python: 4,977; makefile: 17; sh: 5
file content (20 lines) | stat: -rw-r--r-- 707 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Roland Mas <roland.mas@entierement.net>
Date: Wed, 4 Dec 2024 15:11:38 +0100
Subject: Remove testsuite artefact

---
 papermill/tests/test_iorw.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/papermill/tests/test_iorw.py b/papermill/tests/test_iorw.py
index e0356d8..21586fa 100644
--- a/papermill/tests/test_iorw.py
+++ b/papermill/tests/test_iorw.py
@@ -206,6 +206,7 @@ class TestLocalHandler(unittest.TestCase):
         with patch.object(io, 'open'):
             # Shouldn't raise with missing directory
             LocalHandler().write("buffer", "local.ipynb")
+            os.unlink("local.ipynb")
 
     def test_write_passed_cwd(self):
         with TemporaryDirectory() as temp_dir: