Commit 14626ee5 authored by Christoph Reiter's avatar Christoph Reiter 🐍
parent a12f7027
......@@ -5,6 +5,7 @@ import gi.docstring
from gi.repository import GIMarshallingTests
from gi.repository import Gio
from gi.repository import GObject
from gi.repository import GLib
try:
import cairo
......@@ -63,6 +64,9 @@ class Test(unittest.TestCase):
self.assertEqual(GIMarshallingTests.boolean_return_true.__doc__,
'boolean_return_true() -> bool')
@unittest.skipUnless((GLib.MAJOR_VERSION, GLib.MINOR_VERSION) >= (2, 42),
"nullable was added in newer glib/gi")
# https://bugzilla.gnome.org/show_bug.cgi?id=740301
def test_may_return_none(self):
self.assertEqual(Gio.File.get_basename.__doc__,
'get_basename(self) -> str or None')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment