projects
/
mercurial.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92c8179
)
_run_tests__silence_distutils_deprecation_warning
author
Debian Python Team
<team+python@tracker.debian.org>
Mon, 23 May 2022 10:21:07 +0000
(11:21 +0100)
committer
Julien Cristau
<jcristau@debian.org>
Mon, 23 May 2022 10:21:07 +0000
(11:21 +0100)
# HG changeset patch
# User Julien Cristau <jcristau@debian.org>
# Date
1649431378
-7200
# Fri Apr 08 17:22:58 2022 +0200
# Node ID
96cc0ab5e1e68e4e163e8933842f908dcf42897a
# Parent
ff73927e33968c053bc245884deddb78f5fb6212
run-tests: silence distutils deprecation warning
Gbp-Pq: Topic py310
Gbp-Pq: Name 2_run_tests__silence_distutils_deprecation_warning.patch
tests/run-tests.py
patch
|
blob
|
history
diff --git
a/tests/run-tests.py
b/tests/run-tests.py
index 202f7206039c7f56e9f30657675a0885d3400ee5..64cc84ddc28f73b927be7b7c1586ba0ef55df745 100755
(executable)
--- a/
tests/run-tests.py
+++ b/
tests/run-tests.py
@@
-49,7
+49,6
@@
import argparse
import collections
import contextlib
import difflib
-import distutils.version as version
import errno
import json
import multiprocessing
@@
-68,8
+67,13
@@
import threading
import time
import unittest
import uuid
+import warnings
import xml.dom.minidom as minidom
+warnings.filterwarnings("ignore", "The distutils package is deprecated", DeprecationWarning)
+
+import distutils.version as version
+
WINDOWS = os.name == r'nt'
try: