Move dbus-py-add-rst2htmlflag.m4 to jh-add-cflag.m4 - the contents of two of the...
[dbus-python-phuang.git] / test / test-unusable-main-loop.py
blob8bd8e99861c0d0f524c910d1ee0006d6cc475502
1 #!/usr/bin/env python
3 import dbus
5 from dbus_py_test import UnusableMainLoop
7 def main():
8 UnusableMainLoop(set_as_default=True)
9 try:
10 bus = dbus.SessionBus()
11 except ValueError, e:
12 print "Correctly got ValueError from UnusableMainLoop"
13 else:
14 raise AssertionError("Expected ValueError from UnusableMainLoop")
16 if __name__ == '__main__':
17 main()