public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-python/pyxattr/files: pyxattr-0.5.1-test-bytes.patch
@ 2012-12-22  1:47 Mike Gilbert (floppym)
  0 siblings, 0 replies; only message in thread
From: Mike Gilbert (floppym) @ 2012-12-22  1:47 UTC (permalink / raw
  To: gentoo-commits

floppym     12/12/22 01:47:45

  Added:                pyxattr-0.5.1-test-bytes.patch
  Log:
  Add patch to fix tests with pyyhon2.5.
  
  (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)

Revision  Changes    Path
1.1                  dev-python/pyxattr/files/pyxattr-0.5.1-test-bytes.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyxattr/files/pyxattr-0.5.1-test-bytes.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyxattr/files/pyxattr-0.5.1-test-bytes.patch?rev=1.1&content-type=text/plain

Index: pyxattr-0.5.1-test-bytes.patch
===================================================================
commit ea7421018090b7099c5e0a6bd88180f41ebb7bce
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Fri Dec 21 16:33:18 2012 -0500

    Python 2.5 can't parse byte literals, so use bytes() instead.

diff --git a/test/test_xattr.py b/test/test_xattr.py
index 8df00b9..0bca576 100644
--- a/test/test_xattr.py
+++ b/test/test_xattr.py
@@ -12,7 +12,7 @@ from xattr import NS_USER, XATTR_CREATE, XATTR_REPLACE
 
 if sys.hexversion >= 0x03000000:
     PY3K = True
-    EMPTY_NS = b''
+    EMPTY_NS = bytes()
 else:
     PY3K = False
     EMPTY_NS = ''





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-12-22  1:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-22  1:47 [gentoo-commits] gentoo-x86 commit in dev-python/pyxattr/files: pyxattr-0.5.1-test-bytes.patch Mike Gilbert (floppym)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox