Skip to content

Commit 8f12291

Browse files
behrmannkeszybz
authored andcommitted
tests: use ENOMEDIUM in test_id128
1 parent 1afbdab commit 8f12291

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/systemd/test/test_id128.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ def test_randomize():
2323
assert u1 != u2
2424

2525
def test_get_machine():
26-
# yikes, python2 doesn't know ENOMEDIUM
27-
with skip_oserror(errno.ENOENT, errno.ENOSYS, 123):
26+
with skip_oserror(errno.ENOENT, errno.ENOSYS, errno.ENOMEDIUM):
2827
u1 = id128.get_machine()
2928

3029
u2 = id128.get_machine()

0 commit comments

Comments
 (0)