Skip to content

Commit 8e8298d

Browse files
author
Guido van Rossum
committed
Attempt to fix test failure by also replacing base_version with $VERSION
1 parent 08c86df commit 8e8298d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypy/test/testcmdline.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from mypy.test.config import test_data_prefix, test_temp_dir
1616
from mypy.test.data import parse_test_cases, DataDrivenTestCase
1717
from mypy.test.helpers import assert_string_arrays_equal
18-
from mypy.version import __version__
18+
from mypy.version import __version__, base_version
1919

2020
# Path to Python 3 interpreter
2121
python3_path = sys.executable
@@ -99,5 +99,6 @@ def normalize_file_output(content: List[str], current_abs_path: str) -> List[str
9999
timestamp_regex = re.compile('\d{10}')
100100
result = [x.replace(current_abs_path, '$PWD') for x in content]
101101
result = [x.replace(__version__, '$VERSION') for x in result]
102+
result = [x.replace(base_version, '$VERSION') for x in result]
102103
result = [timestamp_regex.sub('$TIMESTAMP', x) for x in result]
103104
return result

0 commit comments

Comments
 (0)