Update to version 0.24.1
This commit is contained in:
parent
008ca59380
commit
f79ee831ce
@ -1,45 +0,0 @@
|
|||||||
From f9c10f84cb60abb87d2240c15fee8c82e643fbf8 Mon Sep 17 00:00:00 2001
|
|
||||||
From: mulhern <amulhern@redhat.com>
|
|
||||||
Date: Wed, 21 Dec 2022 19:20:22 -0500
|
|
||||||
Subject: [PATCH] Drop a flaky test
|
|
||||||
|
|
||||||
Signed-off-by: mulhern <amulhern@redhat.com>
|
|
||||||
---
|
|
||||||
tests/_device_tests/_attributes_tests.py | 24 ------------------------
|
|
||||||
1 file changed, 24 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/tests/_device_tests/_attributes_tests.py b/tests/_device_tests/_attributes_tests.py
|
|
||||||
index ba211e6..02c9a43 100644
|
|
||||||
--- a/tests/_device_tests/_attributes_tests.py
|
|
||||||
+++ b/tests/_device_tests/_attributes_tests.py
|
|
||||||
@@ -124,27 +124,3 @@ def test_asbool(self, a_context, device_datum):
|
|
||||||
device.attributes.asbool(key)
|
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
-
|
|
||||||
- @_UDEV_TEST(167, "test_available_attributes")
|
|
||||||
- @given(strategies.sampled_from(_DEVICES))
|
|
||||||
- @settings(max_examples=5)
|
|
||||||
- def test_available_attributes(self, a_device):
|
|
||||||
- """
|
|
||||||
- Test that the available attributes are exactly the names of files
|
|
||||||
- in the sysfs directory that are regular files or softlinks.
|
|
||||||
- """
|
|
||||||
- available_attributes = sorted(a_device.attributes.available_attributes)
|
|
||||||
-
|
|
||||||
- attribute_filenames = []
|
|
||||||
- sys_path = a_device.sys_path
|
|
||||||
- for filename in sorted(os.listdir(sys_path)):
|
|
||||||
- filepath = os.path.join(sys_path, filename)
|
|
||||||
- status = os.lstat(filepath)
|
|
||||||
- mode = status.st_mode
|
|
||||||
- if not stat.S_ISLNK(mode) and not stat.S_ISREG(mode):
|
|
||||||
- continue
|
|
||||||
- if not stat.S_IRUSR & mode:
|
|
||||||
- continue
|
|
||||||
- attribute_filenames.append(filename)
|
|
||||||
-
|
|
||||||
- assert available_attributes == attribute_filenames
|
|
||||||
--
|
|
||||||
2.27.0
|
|
||||||
|
|
||||||
@ -1,15 +1,13 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-pyudev
|
Name: python-pyudev
|
||||||
Version: 0.24.0
|
Version: 0.24.1
|
||||||
Release: 2
|
Release: 2
|
||||||
Summary: A libudev binding
|
Summary: A libudev binding
|
||||||
License: LGPL 2.1+
|
License: LGPL 2.1+
|
||||||
URL: http://pyudev.readthedocs.org/
|
URL: http://pyudev.readthedocs.org/
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/pyudev-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/20/b6/16961ac3575575260c72928f17df9c99c2a696871e486965ec6e2fa2aff4/pyudev-0.24.1.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Patch6000: backport-Drop-a-flaky-test.patch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package supports almost all libudev functionality.The lisence
|
This package supports almost all libudev functionality.The lisence
|
||||||
is LGPL.It is a python 2/3 binding to libudev which is a linux
|
is LGPL.It is a python 2/3 binding to libudev which is a linux
|
||||||
@ -93,6 +91,9 @@ pytest -v --ignore=./tests/test_device.py --ignore=./tests/test_core.py --ignore
|
|||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 13 2023 zhangchenglin <zhangchenglin@kylinos.cn> - 0.24.1-1
|
||||||
|
- update to 0.24.1
|
||||||
|
|
||||||
* Tue Jun 06 2023 renhongxun <renhongxun@h-partners.com> - 0.24.0-2
|
* Tue Jun 06 2023 renhongxun <renhongxun@h-partners.com> - 0.24.0-2
|
||||||
- enable check
|
- enable check
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
BIN
pyudev-0.24.1.tar.gz
Executable file
BIN
pyudev-0.24.1.tar.gz
Executable file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user