File: python-gi-test

package info (click to toggle)
libhandy 0.0.13-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,064 kB
  • sloc: ansic: 19,485; xml: 482; sh: 42; python: 24; makefile: 8
file content (13 lines) | stat: -rwxr-xr-x 244 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/python3
#
# Make sure gobject introspection works

import gi

from gi.repository import GLib
gi.require_version('Handy', '0.0')
from gi.repository import Handy

s = GLib.String().append("asdü")

assert Handy.string_utf8_len(s) == 4