summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_xreadline.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-08-06 17:14:04 (GMT)
committerGuido van Rossum <guido@python.org>2002-08-06 17:14:04 (GMT)
commit8ee524343445f7ac1c60df812deff17a92757c06 (patch)
treefc97584832519aed4994015ac2d0c3f1e1555d58 /Lib/test/test_xreadline.py
parent97c5fccd773ad509f8fcf6be3708d90c4402772b (diff)
downloadcpython-8ee524343445f7ac1c60df812deff17a92757c06.zip
cpython-8ee524343445f7ac1c60df812deff17a92757c06.tar.gz
cpython-8ee524343445f7ac1c60df812deff17a92757c06.tar.bz2
Mark xreadlines deprecated. Don't use f.xreadlines() in test_iter.py.
Diffstat (limited to 'Lib/test/test_xreadline.py')
-rw-r--r--Lib/test/test_xreadline.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_xreadline.py b/Lib/test/test_xreadline.py
index db9eb6b..0ba4adc 100644
--- a/Lib/test/test_xreadline.py
+++ b/Lib/test/test_xreadline.py
@@ -1,5 +1,8 @@
from test.test_support import verbose
+import warnings
+warnings.filterwarnings('ignore', "xreadlines", DeprecationWarning)
+
class XReader:
def __init__(self):
self.count = 5