From 4e6feb9a1ec9e027e0119866e69e73fc83d66f3fadaeb7156c1469f9b32195b7 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 4 Dec 2024 09:29:53 +0000 Subject: [PATCH] =?UTF-8?q?-=20Fix=20denose.patch=20according=20to=20advic?= =?UTF-8?q?e=20by=20Miro=20Hron=C4=8Dok=20on=20=20=20gh#ipython/ipython=5F?= =?UTF-8?q?genutils#17.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython_genutils?expand=0&rev=10 --- denose.patch | 26 ++++++++++++++------------ python-ipython_genutils.changes | 6 ++++++ 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/denose.patch b/denose.patch index 1e54acd..a075c47 100644 --- a/denose.patch +++ b/denose.patch @@ -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) diff --git a/python-ipython_genutils.changes b/python-ipython_genutils.changes index 94452fd..37588e2 100644 --- a/python-ipython_genutils.changes +++ b/python-ipython_genutils.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Dec 4 09:29:09 UTC 2024 - Matej Cepl + +- 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