diff options
author | Matthias Bussonnier <bussonniermatthias@gmail.com> | 2018-05-15 15:17:00 (GMT) |
---|---|---|
committer | Petr Viktorin <encukou@gmail.com> | 2018-05-15 15:17:00 (GMT) |
commit | 9eb40bc38de83e6ad3fad1931bba1cd36ae88c24 (patch) | |
tree | 3c7583253c8dc3c26ea358bf2ec69efde78d9266 /Lib/test/test_platform.py | |
parent | 01abc6ec3a61769c55ee86834a432fb97801d28f (diff) | |
download | cpython-9eb40bc38de83e6ad3fad1931bba1cd36ae88c24.zip cpython-9eb40bc38de83e6ad3fad1931bba1cd36ae88c24.tar.gz cpython-9eb40bc38de83e6ad3fad1931bba1cd36ae88c24.tar.bz2 |
bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6669)
Also bump PendingDeprecationWarning to DeprecationWarning.
Diffstat (limited to 'Lib/test/test_platform.py')
-rw-r--r-- | Lib/test/test_platform.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py index 2cf4d3f..5f1e28a 100644 --- a/Lib/test/test_platform.py +++ b/Lib/test/test_platform.py @@ -353,14 +353,14 @@ class PlatformTest(unittest.TestCase): class DeprecationTest(unittest.TestCase): def test_dist_deprecation(self): - with self.assertWarns(PendingDeprecationWarning) as cm: + with self.assertWarns(DeprecationWarning) as cm: platform.dist() self.assertEqual(str(cm.warning), 'dist() and linux_distribution() functions are ' 'deprecated in Python 3.5') def test_linux_distribution_deprecation(self): - with self.assertWarns(PendingDeprecationWarning) as cm: + with self.assertWarns(DeprecationWarning) as cm: platform.linux_distribution() self.assertEqual(str(cm.warning), 'dist() and linux_distribution() functions are ' |