15
0
Files
python-columnize/python-columnize-no-mock.patch

28 lines
1.0 KiB
Diff
Raw Normal View History

Index: columnize-0.3.10/__pkginfo__.py
===================================================================
--- columnize-0.3.10.orig/__pkginfo__.py 2020-04-17 03:02:33.000000000 +0200
+++ columnize-0.3.10/__pkginfo__.py 2022-03-08 07:53:57.177335010 +0100
@@ -45,7 +45,7 @@ exec(
)
)
-tests_require = ["mock"]
+tests_require = [""]
web = "https://github.com/rocky/pycolumnize"
# tracebacks in zip files are funky and not debuggable
zip_safe = False
Index: columnize-0.3.10/test_columnize.py
===================================================================
--- columnize-0.3.10.orig/test_columnize.py 2022-03-08 07:53:49.941293417 +0100
+++ columnize-0.3.10/test_columnize.py 2022-03-08 07:56:36.710251987 +0100
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# -*- Python -*-
"Unit test for Columnize"
-import mock, operator, os, sys, unittest
+import operator, os, sys, unittest
+from unittest.mock import mock
top_builddir = os.path.join(os.path.dirname(__file__), os.path.pardir)
if top_builddir[-1] != os.path.sep: