Skip to content

Commit

Permalink
Update python-ipython_genutils to version 0.2.0 / rev 6 via SR 1228245
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/1228245
by user mcepl + anag+factory
- Fix denose.patch according to advice by Miro Hrončok on
  gh#ipython/ipython_genutils#17.
  • Loading branch information
mcepl authored and bmwiedemann committed Dec 4, 2024
1 parent cc1cd0f commit 6be62d3
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 12 deletions.
Binary file modified packages/p/python-ipython_genutils/.files
Binary file not shown.
10 changes: 10 additions & 0 deletions packages/p/python-ipython_genutils/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,14 @@ This version adds a specific requirement for Python 2.7, since it won't even bui
- Build PEP517 wheel</comment>
<requestid>1155324</requestid>
</revision>
<revision rev="6" vrev="5">
<srcmd5>23849f7748d1b555a2d595d5b44b7547</srcmd5>
<version>0.2.0</version>
<time>1733322466</time>
<user>anag+factory</user>
<comment>- Fix denose.patch according to advice by Miro Hrončok on
gh#ipython/ipython_genutils#17.
</comment>
<requestid>1228245</requestid>
</revision>
</revisionlist>
26 changes: 14 additions & 12 deletions packages/p/python-ipython_genutils/denose.patch
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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():
Expand All @@ -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):
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Dec 4 09:29:09 UTC 2024 - Matej Cepl <[email protected]>

- 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 <[email protected]>

Expand Down

0 comments on commit 6be62d3

Please sign in to comment.