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

Unified Diff: third_party/twisted_8_1/twisted/test/test_assertions.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_assertions.py
diff --git a/third_party/twisted_8_1/twisted/test/test_assertions.py b/third_party/twisted_8_1/twisted/test/test_assertions.py
deleted file mode 100644
index 545e8b4dcda98eec108f8124e8383ee1b3ad89db..0000000000000000000000000000000000000000
--- a/third_party/twisted_8_1/twisted/test/test_assertions.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# -*- test-case-name: twisted.test.test_assertions -*-
-# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
-# See LICENSE for details.
-
-from twisted.trial import unittest
-from twisted.python import failure
-
-class Assertions(unittest.TestCase):
- def testExceptions(self):
- exc = self.assertRaises(ZeroDivisionError, lambda: 1/0)
- assert isinstance(exc, ZeroDivisionError), "ZeroDivisionError instance not returned"
-
- for func in [lambda: 1/0, lambda: None]:
- try:
- self.assertRaises(ValueError, func)
- except unittest.FailTest:
- # Success!
- pass
- except:
- raise unittest.FailTest("FailTest not raised", failure.Failure().getTraceback())
- else:
- raise unittest.FailTest("FailTest not raised")
« no previous file with comments | « third_party/twisted_8_1/twisted/test/test_application.py ('k') | third_party/twisted_8_1/twisted/test/test_banana.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698