bindings: python: tests: make EventType private to prevent export
authorVincent Fazio <vfazio@xes-inc.com>
Thu, 14 Nov 2024 14:51:10 +0000 (08:51 -0600)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 19 Nov 2024 14:21:01 +0000 (15:21 +0100)
commit66c12b72ebf21170eff96f2f3f3a864b41237c65
tree267ee87ef692bf60c840b3c387bb5e6ecf5bf394
parent171577eb41f916b77772346c6fe12defea626793
bindings: python: tests: make EventType private to prevent export

Previously, both tests_edge_event and tests_info_event had a public
module level EventType member.

The __main__ module for unittests does a star import from both modules
which led to an import conflict between the two.

It is not necessary to import EventType to run unit tests.

Now, EventType is private to avoid being imported via star syntax.

Signed-off-by: Vincent Fazio <vfazio@xes-inc.com>
Link: https://lore.kernel.org/r/20241114145116.2123714-18-vfazio@xes-inc.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
bindings/python/tests/tests_edge_event.py
bindings/python/tests/tests_info_event.py