diff options
Diffstat (limited to 'tests/test_source.py')
-rw-r--r-- | tests/test_source.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test_source.py b/tests/test_source.py index a5118a9..abe2f69 100644 --- a/tests/test_source.py +++ b/tests/test_source.py @@ -1,12 +1,9 @@ #!/usr/bin/env python -import exceptions -import os -import sys -import select import unittest -from common import glib, gobject +from common import glib + class Idle(glib.Idle): def __init__(self, loop): @@ -18,6 +15,7 @@ class Idle(glib.Idle): self.count += 1 return True + class MySource(glib.Source): def __init__(self): glib.Source.__init__(self) @@ -31,6 +29,7 @@ class MySource(glib.Source): def dispatch(self, callback, args): return callback(*args) + class TestSource(unittest.TestCase): def timeout_callback(self, loop): loop.quit() |