[packages/python-pyfakefs] - handle case with python3-scandir module installed

qboosh qboosh at pld-linux.org
Sun May 20 20:49:32 CEST 2018


commit f1c59ea7c89bb6d131b00b5d4436604e51d3a6e0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun May 20 20:50:22 2018 +0200

    - handle case with python3-scandir module installed

 python-pyfakefs-tests.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/python-pyfakefs-tests.patch b/python-pyfakefs-tests.patch
index 0055212..8038efa 100644
--- a/python-pyfakefs-tests.patch
+++ b/python-pyfakefs-tests.patch
@@ -18,3 +18,14 @@
          dir_path = self.make_path('A', 'B', 'C')
          self.os.makedirs(self.os.path.join(dir_path, 'D'))
          link_path = self.make_path('A', 'C')
+--- pyfakefs-3.4.1/pyfakefs/fake_filesystem_unittest.py.orig	2018-03-18 08:35:26.000000000 +0100
++++ pyfakefs-3.4.1/pyfakefs/fake_filesystem_unittest.py	2018-05-20 20:39:45.228782238 +0200
+@@ -70,7 +70,7 @@
+ 
+ try:
+     import scandir  # noqa: F401 import used to set has_scandir
+-    import fake_scandir
++    from pyfakefs import fake_scandir
+     has_scandir = True
+ except ImportError:
+     has_scandir = False
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pyfakefs.git/commitdiff/f1c59ea7c89bb6d131b00b5d4436604e51d3a6e0



More information about the pld-cvs-commit mailing list