Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 305453 Details for
Bug 405109
=dev-python/pyudev-0.15 version bump request
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/pyudev-unicode.patch
pyudev-unicode.patch (text/plain), 1.59 KB, created by
Ian Delaney (RETIRED)
on 2012-03-15 09:51:44 UTC
(
hide
)
Description:
files/pyudev-unicode.patch
Filename:
MIME Type:
Creator:
Ian Delaney (RETIRED)
Created:
2012-03-15 09:51:44 UTC
Size:
1.59 KB
patch
obsolete
># Uncommented, this first patch allows the test to pass in python2.7 It avoids unicode and ># uses string(t). It also works with str(t). Uncommented, it confounds the now patched ># python3s and fails. Left commented out, the patched python3s succeed in this test. ># >#diff -ur pyudev-0.15.orig/tests/test_device.py pyudev-0.15/tests/test_device.py >#--- tests/test_device.py 2012-03-02 01:19:57.000000000 +0800 >#+++ tests/test_device.py 2012-03-14 21:04:15.941307714 +0800 >#@@ -477,7 +477,7 @@ ># ># def test_iteration(self, device, tags): ># assert set(device.tags) == set(tags) >#- assert all(pytest.is_unicode_string(t) for t in device.tags) >#+ assert all(pytest.string(t) for t in device.tags) ># ># def test_contains(self, device, tags): ># assert all(t in device.tags for t in tags) ># ># These 2 tests ['{0}_{1}'] trip up, assert failing for both in && not in. ># Perhaps there is some obscure value here that I can't fathom ># >diff -ur pyudev-0.15.orig/tests/test_libudev.py pyudev-0.15/tests/test_libudev.py >--- tests/test_libudev.py 2012-03-02 02:26:26.000000000 +0800 >+++ tests/test_libudev.py 2012-03-14 21:10:00.109305597 +0800 >@@ -147,13 +147,3 @@ > else: > return False > >- >-@pytest.mark.coverage >-def test_is_wrapped(function_name): >- wrapped_functions = set('{0}_{1}'.format(ns, member) >- for ns, members in binding.SIGNATURES.items() >- for member in members) >- if _is_blacklisted(function_name): >- assert function_name not in wrapped_functions >- else: >- assert function_name in wrapped_functions
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 405109
: 305453