mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6669)
Also bump PendingDeprecationWarning to DeprecationWarning.
This commit is contained in:
parent
01abc6ec3a
commit
9eb40bc38d
4 changed files with 12 additions and 7 deletions
|
@ -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 '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue