python312Packages.antlr4-python3-runtime: fix tests
This commit is contained in:
parent
5501979bba
commit
d32dd3fe56
1 changed files with 11 additions and 1 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue