diff options
author | Johan Dahlin <johan@gnome.org> | 2008-07-26 08:46:07 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-07-26 08:46:07 +0000 |
commit | 7079b546e06dd77b61cd1ba4692a077a85b9e033 (patch) | |
tree | b505c4318cc8b5c7eed6251e0a008de42e0113e7 /tests/test_source.py | |
parent | b94d79214498b07abc22e676897c8314cc386c7c (diff) | |
download | pygobject-7079b546e06dd77b61cd1ba4692a077a85b9e033.tar.gz pygobject-7079b546e06dd77b61cd1ba4692a077a85b9e033.tar.xz pygobject-7079b546e06dd77b61cd1ba4692a077a85b9e033.zip |
Run pyflakes on the testsuite, remove unused imports and reorganize
2008-07-26 Johan Dahlin <johan@gnome.org>
* tests/common.py:
* tests/test_conversion.py:
* tests/test_enum.py:
* tests/test_interface.py:
* tests/test_option.py:
* tests/test_source.py:
* tests/test_subprocess.py:
* tests/test_subtype.py:
* tests/test_thread.py:
* tests/test_unknown.py:
Run pyflakes on the testsuite, remove unused imports
and reorganize others.
svn path=/trunk/; revision=859
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() |