GNOME Bugzilla – Bug 770821
test-suite failure in test_spawn_async_with_pipes: TypeError: Must be string, not NoneType
Last modified: 2016-09-03 21:27:24 UTC
I'm getting a failure when trying to run the test suite
Version: 3.2.91 gobect-introspection: 1.49.1 glib: 2.49.6 ERROR: test_spawn_async_with_pipes (test_subprocess.TestProcess) ---------------------------------------------------------------------- Traceback (most recent call last):
+ Trace 236631
flags=GLib.SpawnFlags.SEARCH_PATH)
----------------------------------------------------------------------
This failure doesn't happen with glib 2.48 and g-i 1.48
Yeah, just noticed myself, thanks.
This is due to the glib annotation being switched to filename in bug 767245 and the current pygobject code not handling nullable for filenames. This would be fixed by the patch in bug 746564 which implements proper filename handling. Two options: * Add a nullable check in _pygi_marshal_from_py_filename * Push the patch in bug 746564, which is currently missing a review
Created attachment 334730 [details] [review] Handle nullable filename parameters Make _pygi_marshal_from_py_filename handle None input values. This allows one to pass None to parameters annotated as nullable filenames. This fixes a test suite error in test_spawn_async_with_pipes triggered by an annotation change in glib.
https://git.gnome.org/browse/pygobject/commit/?id=7ccc164b6da6d87c0a200ea50314d213470a1f18