summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_io.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-06-24 06:46:53 (GMT)
committerGitHub <noreply@github.com>2022-06-24 06:46:53 (GMT)
commit6e33ba114ffb47505fec59674c5cce5eb6476f76 (patch)
tree3682df72eda311bea3bb61f8cc59d50a21e514f5 /Lib/test/test_io.py
parent5075e81c519af5cf3fd9d356d483b0c9df6b116a (diff)
downloadcpython-6e33ba114ffb47505fec59674c5cce5eb6476f76.zip
cpython-6e33ba114ffb47505fec59674c5cce5eb6476f76.tar.gz
cpython-6e33ba114ffb47505fec59674c5cce5eb6476f76.tar.bz2
gh-94169: Remove deprecated io.OpenWrapper (#94170)
Remove io.OpenWrapper and _pyio.OpenWrapper, deprecated in Python 3.10: just use :func:`open` instead. The open() (io.open()) function is a built-in function. Since Python 3.10, _pyio.open() is also a static method.
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r--Lib/test/test_io.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
index 129734b..24c93b9 100644
--- a/Lib/test/test_io.py
+++ b/Lib/test/test_io.py
@@ -4301,14 +4301,6 @@ class MiscIOTest(unittest.TestCase):
proc = assert_python_ok('-X', 'utf8=1', '-c', code)
self.assertEqual(b"utf-8", proc.out.strip())
- @support.cpython_only
- # Depending if OpenWrapper was already created or not, the warning is
- # emitted or not. For example, the attribute is already created when this
- # test is run multiple times.
- @warnings_helper.ignore_warnings(category=DeprecationWarning)
- def test_openwrapper(self):
- self.assertIs(self.io.OpenWrapper, self.io.open)
-
class CMiscIOTest(MiscIOTest):
io = io