diff options
author | Matthias Bussonnier <bussonniermatthias@gmail.com> | 2018-05-17 08:16:12 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-05-17 08:16:12 (GMT) |
commit | f90f5d5c1d95721e0ca0b1c302e3d13ed34753a8 (patch) | |
tree | 6cfb0f3881f6d5aa7c775be2efe09d01eca1df3d /Lib/test/test_minidom.py | |
parent | d5f144260886959c1fe06bc4506a23fd10f92348 (diff) | |
download | cpython-f90f5d5c1d95721e0ca0b1c302e3d13ed34753a8.zip cpython-f90f5d5c1d95721e0ca0b1c302e3d13ed34753a8.tar.gz cpython-f90f5d5c1d95721e0ca0b1c302e3d13ed34753a8.tar.bz2 |
bpo-33549: Remove shim and deprecation warning to access DocumentLS.async. (GH-6924)
`obj.async` is now a syntax error, so the warning/shim is
quasi-unnecessary.
Diffstat (limited to 'Lib/test/test_minidom.py')
-rw-r--r-- | Lib/test/test_minidom.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py index ee8c041..a2cc882 100644 --- a/Lib/test/test_minidom.py +++ b/Lib/test/test_minidom.py @@ -60,17 +60,7 @@ class MinidomTest(unittest.TestCase): def testDocumentAsyncAttr(self): doc = Document() self.assertFalse(doc.async_) - with self.assertWarns(DeprecationWarning): - self.assertFalse(getattr(doc, 'async', True)) - with self.assertWarns(DeprecationWarning): - setattr(doc, 'async', True) - with self.assertWarns(DeprecationWarning): - self.assertTrue(getattr(doc, 'async', False)) - self.assertTrue(doc.async_) - self.assertFalse(Document.async_) - with self.assertWarns(DeprecationWarning): - self.assertFalse(getattr(Document, 'async', True)) def testParseFromBinaryFile(self): with open(tstfile, 'rb') as file: |