summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-03-19 17:58:59 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-03-19 17:58:59 (GMT)
commit10dca6e282924974261e7e0b25b13ee1be3ddc58 (patch)
treec27a0272c2ad502356a4d60eec255b3b7f273537 /Lib/test
parent05387861ea96dc7603519f00d95dcd7ad61b8919 (diff)
downloadcpython-10dca6e282924974261e7e0b25b13ee1be3ddc58.zip
cpython-10dca6e282924974261e7e0b25b13ee1be3ddc58.tar.gz
cpython-10dca6e282924974261e7e0b25b13ee1be3ddc58.tar.bz2
The filter() function does support a None argument in Py3.0.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_py3kwarn.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py
index f7a6949..2b54ee1 100644
--- a/Lib/test/test_py3kwarn.py
+++ b/Lib/test/test_py3kwarn.py
@@ -48,17 +48,6 @@ class TestPy3KWarnings(unittest.TestCase):
with catch_warning() as w:
self.assertWarning(cell0 < cell1, w, expected)
- def test_filter(self):
- from itertools import ifilter
- from future_builtins import filter
- expected = 'ifilter with None as a first argument is not supported '\
- 'in 3.x. Use a list comprehension instead.'
-
- with catch_warning() as w:
- self.assertWarning(ifilter(None, []), w, expected)
- with catch_warning() as w:
- self.assertWarning(filter(None, []), w, expected)
-
def test_code_inequality_comparisons(self):
expected = 'code inequality comparisons not supported in 3.x.'
def f(x):