Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Unified Diff: third_party/twisted_8_1/twisted/internet/test/test_gtk2reactor.py

Issue 12261012: Remove third_party/twisted_8_1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/twisted_8_1/twisted/internet/test/test_gtk2reactor.py
diff --git a/third_party/twisted_8_1/twisted/internet/test/test_gtk2reactor.py b/third_party/twisted_8_1/twisted/internet/test/test_gtk2reactor.py
deleted file mode 100644
index 22daed8afd3e4bc5376dfe10aa268f546ed42929..0000000000000000000000000000000000000000
--- a/third_party/twisted_8_1/twisted/internet/test/test_gtk2reactor.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright (c) 2008 Twisted Matrix Laboratories.
-# See LICENSE for details.
-
-"""
-Tests for L{twisted.internet.gtk2reactor}.
-"""
-
-from twisted.trial.unittest import TestCase
-
-
-class Gtk2ReactorTests(TestCase):
- """
- Tests for L{twisted.internet.gtk2reactor.Gtk2Reactor}.
- """
- def test_stopWhenRunning(self):
- """
- When C{reactor.stop} is scheduled with C{callWhenRunning},
- C{reactor.run} will return immediately, and without processing any
- timed events.
- """
- # This test *should* be part of a general reactor test suite that runs
- # tests cases against all reactor implementations.
- missed = []
- def calledTooLate():
- missed.append(True)
- reactor.crash()
- reactor = Gtk2Reactor(useGtk=False)
- reactor.callWhenRunning(reactor.stop)
- reactor.callLater(0, calledTooLate)
- reactor.run(installSignalHandlers=False)
- # XXX This explicit calls to clean up the waker should become obsolete
- # when bug #3063 is fixed. -radix, 2008-02-29. Fortunately it should
- # probably cause an error when bug #3063 is fixed, so it should be
- # removed in the same branch that fixes it.
- reactor.removeReader(reactor.waker)
- reactor.waker.connectionLost(None)
- if missed == [True]:
- self.fail("callWhenRunning reactor.stop did not take effect")
-
-try:
- from twisted.internet.gtk2reactor import Gtk2Reactor
-except ImportError:
- Gtk2ReactorTests.skip = "gtk2reactor is unavailable"
« no previous file with comments | « third_party/twisted_8_1/twisted/internet/test/__init__.py ('k') | third_party/twisted_8_1/twisted/internet/test/test_iocp.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698