bindings: python: tests: add a test-case exposing a bug in Line.request()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 9 Oct 2020 12:22:09 +0000 (14:22 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 9 Oct 2020 12:24:10 +0000 (14:24 +0200)
commite120d3e996e78ae1f6a5b330d14090c5060fd38a
tree1d93b8220f6d9fecbe088a8cbb2d6cde3379fe58
parent3ffa77c4c29392e88007bd562f4562fc4b0bcc9a
bindings: python: tests: add a test-case exposing a bug in Line.request()

Calling Line.request() with no keyword arguments leads to an exception
being raised by PyDict_Size(). Add a test-case exposing this bug. It
will be fixed in the subsequent commit.

Reported-by: Jiri Benc <jbenc@upir.cz>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
bindings/python/tests/gpiod_py_test.py