File: tests-remove-test-that-doesn-t-seem-to-make-a-lot-of-sens.patch

package info (click to toggle)
python-fs 2.4.16-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,060 kB
  • sloc: python: 13,155; makefile: 226; sh: 3
file content (31 lines) | stat: -rw-r--r-- 1,109 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: Eli Schwartz <eschwartz93@gmail.com>
Date: Sun, 15 Sep 2024 19:35:28 -0400
Subject: tests: remove test that doesn't seem to make a lot of sense

It claims to be testing that a `__repr__()` "works", but this doesn't
make any sense as everything eventually gets one from `object()`. It
also makes use of the deprecated pkg_resources interface, so simply
ditch this code entirely.

Origin: upstream, https://github.com/PyFilesystem/pyfilesystem2/pull/588
---
 tests/test_opener.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/tests/test_opener.py b/tests/test_opener.py
index 37c6f17..910f578 100644
--- a/tests/test_opener.py
+++ b/tests/test_opener.py
@@ -215,12 +215,6 @@ class TestOpeners(unittest.TestCase):
     def tearDown(self):
         shutil.rmtree(self.tmpdir)
 
-    def test_repr(self):
-        # Check __repr__ works
-        for entry_point in pkg_resources.iter_entry_points("fs.opener"):
-            _opener = entry_point.load()
-            repr(_opener())
-
     def test_open_osfs(self):
         fs = opener.open_fs("osfs://.")
         self.assertIsInstance(fs, OSFS)