Skip to content

Commit

Permalink
test_yum_package_downloading.py: Don't hardcode a value for EOPNOTSUPP
Browse files Browse the repository at this point in the history
For historical reasons, errno numbers are not the same on all
architectures (compatibility with other operating systems already
available on the same hardware was considered more important than
having the same numbers on all Linux architectures).
  • Loading branch information
AdrianBunk authored and bluca committed Nov 7, 2024
1 parent 7955987 commit 30250f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/python/tests/test_yum_package_downloading.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import unittest
import tempfile
import xattr
import errno

import tests.servermock.yum_mock.config as config

Expand Down Expand Up @@ -758,7 +759,7 @@ def test_download_packages_with_resume_02(self):
"user.librepo.downloadinprogress".encode("utf-8"),
"".encode("utf-8"))
except IOError as err:
if err.errno == 95:
if err.errno == errno.EOPNOTSUPP:
self.skipTest('extended attributes are not supported')
raise

Expand Down

0 comments on commit 30250f9

Please sign in to comment.