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") |