Check and fix ci tests #9
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix Python 2 print statements and invalid escape sequences to resolve CI test failures.
This PR addresses two main categories of Python syntax issues:
printstatements: Convertedprintstatements in legacy data generation and restart check scripts to Python 3print()function calls.TestPetscVersion.pyand LaTeX strings inplot_slipfn.pyto raw strings (r"...") to correctly handle backslashes and preventSyntaxWarnings.Note
Converts legacy print statements to Python 3, fixes invalid escape sequences, and adds thermoelastic/thermoporoelastic pytest modules.
materials/TestThermoelasticity.pyandmaterials/TestThermoporoelasticity.py; register intests/pytests/Makefile.amandmaterials/__init__.py.materials/TestAuxiliarySubfields.pyto includeAuxSubfieldsThermoelasticityandAuxSubfieldsThermoporoelasticity.utils/TestPetscVersion.py.printstatements to Python 3print()acrossplaypen/viscorestart/*.py,tests/libtests/bc/data/absorbingdampers.py,tests/libtests/faults/data/{adjustsoln.py,cohesivedyn.py,slipth.py}.playpen/viscorestart/run_all.py.docs/user/physics/faults/figs/plot_slipfn.py.Written by Cursor Bugbot for commit f866c93. This will update automatically on new commits. Configure here.