python312Packages.antlr4-python3-runtime: fix tests
This commit is contained in:
@@ -19,12 +19,22 @@ buildPythonPackage rec {
|
||||
setuptools
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace tests/TestIntervalSet.py \
|
||||
--replace "assertEquals" "assertEqual"
|
||||
'';
|
||||
|
||||
# We use an asterisk because this expression is used also for old antlr
|
||||
# versions, where there the tests directory is `test` and not `tests`.
|
||||
# See e.g in package `baserow`.
|
||||
checkPhase = ''
|
||||
cd test*
|
||||
runHook preCheck
|
||||
|
||||
pushd tests
|
||||
${python.interpreter} run.py
|
||||
popd
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
Reference in New Issue
Block a user