]> git.pld-linux.org Git - packages/python-cffi.git/blob - python-cffi-tests.patch
- added tests patch (adjust tests for deeper build-* dirs)
[packages/python-cffi.git] / python-cffi-tests.patch
1 --- cffi-1.11.5/testing/cffi1/test_zdist.py.orig        2018-02-27 19:15:41.000000000 +0100
2 +++ cffi-1.11.5/testing/cffi1/test_zdist.py     2018-05-27 11:40:42.977033830 +0200
3 @@ -17,8 +17,8 @@
4  
5      def setup_method(self, meth):
6          self.executable = os.path.abspath(sys.executable)
7 -        self.rootdir = os.path.abspath(os.path.dirname(os.path.dirname(
8 -            cffi.__file__)))
9 +        self.rootdir = os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(
10 +            cffi.__file__))))
11          self.udir = udir.join(meth.__name__)
12          os.mkdir(str(self.udir))
13          if meth.chdir_to_tmp:
14 --- cffi-1.11.5/testing/embedding/test_basic.py.orig    2018-02-27 19:15:41.000000000 +0100
15 +++ cffi-1.11.5/testing/embedding/test_basic.py 2018-05-27 11:41:38.247033196 +0200
16 @@ -26,7 +26,7 @@
17  
18  
19  def prefix_pythonpath():
20 -    cffi_base = os.path.dirname(os.path.dirname(local_dir))
21 +    cffi_base = os.path.dirname(os.path.dirname(os.path.dirname(local_dir)))
22      pythonpath = org_env.get('PYTHONPATH', '').split(os.pathsep)
23      if cffi_base not in pythonpath:
24          pythonpath.insert(0, cffi_base)
This page took 0.050314 seconds and 3 git commands to generate.