summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_contextlib.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-10-11 05:39:39 (GMT)
committerRaymond Hettinger <python@rcn.com>2013-10-11 05:39:39 (GMT)
commit1254b407ac6960ff2594e417d2f1c2c6a1ffc755 (patch)
treeec8d08e5216d84deb67d123a095a716fa1c29407 /Lib/test/test_contextlib.py
parenta76795bf532169674f4e1637585ff6a52359e1c8 (diff)
downloadcpython-1254b407ac6960ff2594e417d2f1c2c6a1ffc755.zip
cpython-1254b407ac6960ff2594e417d2f1c2c6a1ffc755.tar.gz
cpython-1254b407ac6960ff2594e417d2f1c2c6a1ffc755.tar.bz2
Rename contextlib.ignored() to contextlib.ignore().
Diffstat (limited to 'Lib/test/test_contextlib.py')
-rw-r--r--Lib/test/test_contextlib.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_contextlib.py b/Lib/test/test_contextlib.py
index d8a0530..48f8fa9 100644
--- a/Lib/test/test_contextlib.py
+++ b/Lib/test/test_contextlib.py
@@ -632,26 +632,26 @@ class TestExitStack(unittest.TestCase):
stack.push(cm)
self.assertIs(stack._exit_callbacks[-1], cm)
-class TestIgnored(unittest.TestCase):
+class TestIgnore(unittest.TestCase):
def test_no_exception(self):
- with ignored(ValueError):
+ with ignore(ValueError):
self.assertEqual(pow(2, 5), 32)
def test_exact_exception(self):
- with ignored(TypeError):
+ with ignore(TypeError):
len(5)
def test_multiple_exception_args(self):
- with ignored(ZeroDivisionError, TypeError):
+ with ignore(ZeroDivisionError, TypeError):
len(5)
def test_exception_hierarchy(self):
- with ignored(LookupError):
+ with ignore(LookupError):
'Hello'[50]
class TestRedirectStdout(unittest.TestCase):