blob: 8bd8e99861c0d0f524c910d1ee0006d6cc475502 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/usr/bin/env python
import dbus
from dbus_py_test import UnusableMainLoop
def main():
UnusableMainLoop(set_as_default=True)
try:
bus = dbus.SessionBus()
except ValueError, e:
print "Correctly got ValueError from UnusableMainLoop"
else:
raise AssertionError("Expected ValueError from UnusableMainLoop")
if __name__ == '__main__':
main()
|