Accepting request 1228245 from devel:languages:python:jupyter

- Fix denose.patch according to advice by Miro Hrončok on
  gh#ipython/ipython_genutils#17.

OBS-URL: https://build.opensuse.org/request/show/1228245
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ipython_genutils?expand=0&rev=6
This commit is contained in:
Ana Guerrero 2024-12-04 14:27:46 +00:00 committed by Git OBS Bridge
commit 0565ae335c
2 changed files with 20 additions and 12 deletions

View File

@ -1,9 +1,9 @@
---
ipython_genutils/testing/decorators.py | 80 ++--------------------------
ipython_genutils/tests/test_importstring.py | 12 ++--
ipython_genutils/tests/test_path.py | 23 +++-----
ipython_genutils/testing/decorators.py | 85 ++--------------------------
ipython_genutils/tests/test_importstring.py | 12 +--
ipython_genutils/tests/test_path.py | 31 ++++------
ipython_genutils/tests/test_text.py | 16 +----
4 files changed, 29 insertions(+), 102 deletions(-)
4 files changed, 33 insertions(+), 111 deletions(-)
--- a/ipython_genutils/testing/decorators.py
+++ b/ipython_genutils/testing/decorators.py
@ -186,7 +186,7 @@
def test_filefind():
@@ -22,20 +19,24 @@ def test_filefind():
@@ -22,42 +19,42 @@ def test_filefind():
def test_ensure_dir_exists():
@ -204,17 +204,19 @@
class TestLinkOrCopy(object):
+ def __init__(self):
+ self.tempdir = None
+ self.src = None
+
def setUp(self):
- def setUp(self):
- self.tempdir = TemporaryDirectory()
+ def setup_method(self):
+ self.tempdir = tempfile.TemporaryDirectory()
self.src = self.dst("src")
with open(self.src, "w") as f:
f.write("Hello, world!")
@@ -47,17 +48,17 @@ class TestLinkOrCopy(object):
- def tearDown(self):
+ def teardown_method(self):
self.tempdir.cleanup()
def dst(self, *args):
return os.path.join(self.tempdir.name, *args)
def assert_inode_not_equal(self, a, b):
@ -237,7 +239,7 @@
@skip_win32
def test_link_successful(self):
@@ -105,4 +106,4 @@ class TestLinkOrCopy(object):
@@ -105,4 +102,4 @@ class TestLinkOrCopy(object):
path.link_or_copy(self.src, dst)
path.link_or_copy(self.src, dst)
self.assert_inode_equal(self.src, dst)

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Dec 4 09:29:09 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Fix denose.patch according to advice by Miro Hrončok on
gh#ipython/ipython_genutils#17.
-------------------------------------------------------------------
Tue Mar 5 18:26:09 UTC 2024 - Ben Greiner <code@bnavigator.de>