]> git.pld-linux.org Git - packages/python-pyfakefs.git/commitdiff
- handle case with python3-scandir module installed auto/th/python-pyfakefs-3.4.1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 20 May 2018 18:50:22 +0000 (20:50 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 20 May 2018 18:50:22 +0000 (20:50 +0200)
python-pyfakefs-tests.patch

index 0055212b7a213b81e45578b118c5a6d10d291c05..8038efadf112568a00f0d9a7619c4706361495af 100644 (file)
          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
This page took 0.079742 seconds and 4 git commands to generate.