mirror of
https://github.com/systemd/systemd
synced 2024-09-30 05:15:19 +00:00
test: use lstat() instead of stat(follow_symlinks=False)
This makes the test compatible with Python 3.9, as the follow_symlinks keyword was introduced in Python 3.10.
This commit is contained in:
parent
9f177a38ab
commit
56cdf81a72
|
@ -122,7 +122,7 @@ class Device:
|
|||
print(f'check_add {self.devpath}')
|
||||
|
||||
devnode = self.get_devnode()
|
||||
st = devnode.stat(follow_symlinks=False)
|
||||
st = devnode.lstat()
|
||||
assert stat.S_ISCHR(st.st_mode) or stat.S_ISBLK(st.st_mode)
|
||||
self.check_permissions(st)
|
||||
self.check_major_minor(st)
|
||||
|
|
Loading…
Reference in a new issue