File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 29
29
# stdlib
30
30
import re
31
31
import sys
32
+ import sysconfig
32
33
from typing import Iterable
33
34
34
35
# 3rd party
@@ -64,8 +65,11 @@ def prepare_stdout(stdout: str, toxinidir: PathPlus):
64
65
Given the content of ``sys.stdout`` captured from a run of ``tox``,
65
66
prepare the output for regression tests.
66
67
67
- This entails replacing the path ``toxindir`` with ``...``,
68
- and removing deprecation warnings generated by ``packaging``.
68
+ This entails:
69
+
70
+ * replacing the path ``toxindir`` with ``...``
71
+ * removing deprecation warnings generated by ``packaging``
72
+ * replacing the path to the python stdlib with ``/usr/lib/python3.x``
69
73
70
74
:param stdout:
71
75
:param toxinidir:
@@ -80,5 +84,9 @@ def prepare_stdout(stdout: str, toxinidir: PathPlus):
80
84
'' ,
81
85
stdout ,
82
86
)
87
+ stdout = stdout .replace (
88
+ sysconfig .get_path ("stdlib" ),
89
+ f"/usr/lib/python{ sys .version_info .major } .{ sys .version_info .minor } " ,
90
+ )
83
91
84
92
return stdout
You can’t perform that action at this time.
0 commit comments