unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 47dded4a4961997fc6074b51a09fa47638feb2f6 1208 bytes (raw)
name: gnu/packages/patches/python-fix-tests-py3.5.patch 	 # note: path name is non-authoritative(*)

 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
32
33
34
 
Additional test fixes which affect Python 3.5 (and presumably later) but not
prior revisions of Python.

--- Lib/test/test_pathlib.py     2014-03-01 03:02:36.088311000 +0100
+++ Lib/test/test_pathlib.py     2014-03-01 04:56:37.768311000 +0100
@@ -1986,8 +1986,9 @@
         expect = set() if not support.fs_is_case_insensitive(BASE) else given
         self.assertEqual(given, expect)
         self.assertEqual(set(p.rglob("FILEd*")), set())
 
+    @unittest.skipIf(True, "Guix builder home is '/' which causes trouble for these tests")
     def test_expanduser(self):
         P = self.cls
         support.import_module('pwd')
         import pwd
--- Lib/test/test_tarfile.py        2016-02-24 19:22:52.597208055 +0000
+++ Lib/test/test_tarfile.py     2016-02-24 20:50:48.941950135 +0000
@@ -2305,11 +2305,14 @@
     try:
         import pwd, grp
     except ImportError:
         return False
-    if pwd.getpwuid(0)[0] != 'root':
-        return False
-    if grp.getgrgid(0)[0] != 'root':
+    try:
+        if pwd.getpwuid(0)[0] != 'root':
+            return False
+        if grp.getgrgid(0)[0] != 'root':
+            return False
+    except KeyError:
         return False
     return True
 
     

debug log:

solving 47dded4 ...
found 47dded4 in https://yhetil.org/guix-devel/87mvmetukz.fsf@dustycloud.org/

applying [1/1] https://yhetil.org/guix-devel/87mvmetukz.fsf@dustycloud.org/
diff --git a/gnu/packages/patches/python-fix-tests-py3.5.patch b/gnu/packages/patches/python-fix-tests-py3.5.patch
new file mode 100644
index 0000000..47dded4

1:16: trailing whitespace.
 
1:40: trailing whitespace.
 
1:41: trailing whitespace.
     
Checking patch gnu/packages/patches/python-fix-tests-py3.5.patch...
Applied patch gnu/packages/patches/python-fix-tests-py3.5.patch cleanly.
warning: 3 lines add whitespace errors.

index at:
100644 47dded4a4961997fc6074b51a09fa47638feb2f6	gnu/packages/patches/python-fix-tests-py3.5.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).