aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pyudev/files/pyudev_wrapped_test.patch')
-rw-r--r--dev-python/pyudev/files/pyudev_wrapped_test.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/dev-python/pyudev/files/pyudev_wrapped_test.patch b/dev-python/pyudev/files/pyudev_wrapped_test.patch
deleted file mode 100644
index 3f23380..0000000
--- a/dev-python/pyudev/files/pyudev_wrapped_test.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-/* tests/test_monitor.py:195: draws an error because the gentoo sandbox pathname becomes a mile long
-second patch here changes its name to t_bs and even then it only just makes it.
-I normally use PORTAGE_TMPDIR="/mnt/gen2/TmpDir" which is too long under any circumstance.
-By rights this requires an ewarn line;
-"if your PORTAGE_TMPDIR isn't /var/tmp/, change it to /var/tmp for tests to pass for this package"
-sometimes I get a fail of TestTags.test_iteration[..] then run again and it passes
-diff -ur pyudev-0.15.orig/tests/test_libudev.py pyudev-0.15/tests/test_libudev.py
---- tests//test_libudev.py 2012-06-25 18:18:06.051694665 +0800
-+++ tests/test_libudev.py 2012-03-02 02:26:26.000000000 +0800
-@@ -150,10 +150,12 @@
-
- @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
-+ if function_name != 'udev_enumerate_scan_subsystems':
-+ if function_name != 'udev_enumerate_add_syspath':
-+ 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
-diff -ur pyudev-0.15.orig/tests/test_monitor.py pyudev-0.15/tests/test_monitor.py
---- tests/test_monitor.py 2012-06-25 18:22:30.641674253 +0800
-+++ tests/test_monitor.py 2012-03-02 02:25:20.000000000 +0800
-@@ -214,8 +214,7 @@
- monitor.set_receive_buffer_size(1000)
- func.assert_called_with(monitor, 1000)
-
-- def test_set_receive_buffer_size_privilege_error(self, monitor,
-- socket_path):
-+ def t_bs(self, monitor, socket_path):
- with pytest.raises(EnvironmentError) as exc_info:
- monitor.set_receive_buffer_size(1000)
- pytest.assert_env_error(exc_info.value, errno.EPERM)