mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-04-27 20:10:43 +02:00
test: fix the exception check for the missing eiproto module
When running pytest from the source directory we get a ModuleNotFoundError, not an ImportError.
This commit is contained in:
parent
0aa8bab9c0
commit
6179c91580
1 changed files with 5 additions and 2 deletions
|
|
@ -46,9 +46,12 @@ try:
|
|||
EiDevice,
|
||||
EiSeat,
|
||||
)
|
||||
except ImportError:
|
||||
except ModuleNotFoundError as e:
|
||||
# This file needs to be processed by meson, so let's skip when this fails in the source dir
|
||||
pytest.skip(allow_module_level=True)
|
||||
if e.name == "eiproto":
|
||||
pytest.skip(allow_module_level=True)
|
||||
else:
|
||||
raise e
|
||||
|
||||
|
||||
logger = structlog.get_logger()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue