[3.7] bpo-33988: Use DeprecationWarning instead of PendingDeprecationWarning by tirkarthi · Pull Request #7985 · python/cpython
Expand Up
@@ -265,7 +265,7 @@ def test_dist(self):
'ignore',
r'dist\(\) and linux_distribution\(\) '
'functions are deprecated .*',
PendingDeprecationWarning,
DeprecationWarning,
)
res = platform.dist()
Expand Down Expand Up @@ -341,7 +341,7 @@ def test_linux_distribution_encoding(self): 'ignore', r'dist\(\) and linux_distribution\(\) ' 'functions are deprecated .*', PendingDeprecationWarning, DeprecationWarning, ) distname, version, distid = platform.linux_distribution()
Expand Down
Expand Down Expand Up @@ -341,7 +341,7 @@ def test_linux_distribution_encoding(self): 'ignore', r'dist\(\) and linux_distribution\(\) ' 'functions are deprecated .*', PendingDeprecationWarning, DeprecationWarning, ) distname, version, distid = platform.linux_distribution()
Expand Down