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

Unified Diff: third_party/twisted_8_1/twisted/test/test_lockfile.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/test/test_lockfile.py
diff --git a/third_party/twisted_8_1/twisted/test/test_lockfile.py b/third_party/twisted_8_1/twisted/test/test_lockfile.py
deleted file mode 100644
index a928ee9fef2544d397631616d2189afaf36f04a1..0000000000000000000000000000000000000000
--- a/third_party/twisted_8_1/twisted/test/test_lockfile.py
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright (c) 2005 Divmod, Inc.
-# See LICENSE for details.
-
-from twisted.trial import unittest
-from twisted.python import lockfile
-
-class LockingTestCase(unittest.TestCase):
- def testBasics(self):
- lockf = self.mktemp()
- lock = lockfile.FilesystemLock(lockf)
- self.failUnless(lock.lock())
- self.failUnless(lock.clean)
- lock.unlock()
- self.failUnless(lock.lock())
- self.failUnless(lock.clean)
- lock.unlock()
-
-
- def testProtection(self):
- lockf = self.mktemp()
- lock = lockfile.FilesystemLock(lockf)
- self.failUnless(lock.lock())
- self.failUnless(lock.clean)
- self.failIf(lock.lock())
- lock.unlock()
-
-
- def testBigLoop(self):
- lockf = self.mktemp()
- lock = lockfile.FilesystemLock(lockf)
- self.failUnless(lock.lock())
- for i in xrange(500):
- self.failIf(lock.lock())
- lock.unlock()
-
-
- def testIsLocked(self):
- lockf = self.mktemp()
- self.failIf(lockfile.isLocked(lockf))
- lock = lockfile.FilesystemLock(lockf)
- self.failUnless(lock.lock())
- self.failUnless(lockfile.isLocked(lockf))
- lock.unlock()
- self.failIf(lockfile.isLocked(lockf))
-
- # A multiprocess test would be good here, for the sake of
- # completeness. However, it is fairly safe to rely on the
- # filesystem to provide the semantics we require.
-
« no previous file with comments | « third_party/twisted_8_1/twisted/test/test_journal.py ('k') | third_party/twisted_8_1/twisted/test/test_log.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698