summaryrefslogtreecommitdiff
path: root/dev-python/pyudev/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/pyudev/files
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pyudev/files')
-rw-r--r--dev-python/pyudev/files/pyudev-0.19.0-skip-non-deterministic-test.patch78
1 files changed, 78 insertions, 0 deletions
diff --git a/dev-python/pyudev/files/pyudev-0.19.0-skip-non-deterministic-test.patch b/dev-python/pyudev/files/pyudev-0.19.0-skip-non-deterministic-test.patch
new file mode 100644
index 000000000000..268d2bdf1b4c
--- /dev/null
+++ b/dev-python/pyudev/files/pyudev-0.19.0-skip-non-deterministic-test.patch
@@ -0,0 +1,78 @@
+diff --git a/tests/_device_tests/_attributes_tests.py b/tests/_device_tests/_attributes_tests.py
+index 54d8ae6..84e26c3 100644
+--- a/tests/_device_tests/_attributes_tests.py
++++ b/tests/_device_tests/_attributes_tests.py
+@@ -88,6 +88,7 @@ def test_non_iterable(self, a_device):
+ with pytest.raises(TypeError):
+ a_device.attributes['key']
+
++ @pytest.mark.skipif(True, reason='Non-deterministic')
+ @given(_CONTEXT_STRATEGY, strategies.sampled_from(_DEVICE_DATA))
+ @settings(max_examples=5)
+ def test_asstring(self, a_context, device_datum):
+@@ -99,6 +100,7 @@ def test_asstring(self, a_context, device_datum):
+ assert is_unicode_string(device.attributes.asstring(key))
+ assert device.attributes.asstring(key) == value
+
++ @pytest.mark.skipif(True, reason='Non-deterministic')
+ @given(_CONTEXT_STRATEGY, strategies.sampled_from(_DEVICE_DATA))
+ @settings(max_examples=5)
+ def test_asint(self, a_context, device_datum):
+@@ -115,6 +117,7 @@ def test_asint(self, a_context, device_datum):
+ else:
+ assert device.attributes.asint(key) == value
+
++ @pytest.mark.skipif(True, reason='Non-deterministic')
+ @given(_CONTEXT_STRATEGY, strategies.sampled_from(_DEVICE_DATA))
+ @settings(max_examples=5)
+ def test_asbool(self, a_context, device_datum):
+diff --git a/tests/_device_tests/_device_tests.py b/tests/_device_tests/_device_tests.py
+index 92a767d..175c611 100644
+--- a/tests/_device_tests/_device_tests.py
++++ b/tests/_device_tests/_device_tests.py
+@@ -378,6 +378,7 @@ def test_getitem_nonexisting(self, a_device):
+ a_device['a non-existing property']
+ assert str(excinfo.value) == repr('a non-existing property')
+
++ @pytest.mark.skipif(True, reason='Non-deterministic')
+ @given(_CONTEXT_STRATEGY, strategies.sampled_from(_DEVICE_DATA))
+ @settings(max_examples=5)
+ def test_asint(self, a_context, device_datum):
+@@ -391,6 +392,7 @@ def test_asint(self, a_context, device_datum):
+ else:
+ assert device.asint(property) == value
+
++ @pytest.mark.skipif(True, reason='Non-deterministic')
+ @given(_CONTEXT_STRATEGY, strategies.sampled_from(_DEVICE_DATA))
+ @settings(max_examples=5)
+ def test_asbool(self, a_context, device_datum):
+diff --git a/tests/_device_tests/_devices_tests.py b/tests/_device_tests/_devices_tests.py
+index 8eb8069..b80e550 100644
+--- a/tests/_device_tests/_devices_tests.py
++++ b/tests/_device_tests/_devices_tests.py
+@@ -189,8 +189,8 @@ def test_from_device_file(self, a_context, device_datum):
+
+ _device_data = [d for d in _DEVICE_DATA if list(d.device_links)]
+ @pytest.mark.skipif(
+- len(_device_data) == 0,
+- reason='no device with a device node'
++ True,
++ reason='non deterministic'
+ )
+ @given(_CONTEXT_STRATEGY, strategies.sampled_from(_device_data))
+ @settings(max_examples=5, min_satisfying_examples=1)
+diff --git a/tests/test_discover.py b/tests/test_discover.py
+index dd336d5..c410a64 100644
+--- a/tests/test_discover.py
++++ b/tests/test_discover.py
+@@ -155,8 +155,8 @@ def test_name(self, a_device):
+
+ _devices = [d for d in _DEVICES if list(d.device_links)]
+ @pytest.mark.skipif(
+- len(_devices) == 0,
+- reason="no device with device links"
++ True,
++ reason='Non-deterministic'
+ )
+ @given(strategies.sampled_from(_devices))
+ @settings(max_examples=NUM_TESTS, min_satisfying_examples=1)