Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix "DeprecationWarning: invalid escape sequence '\s'" #286

Merged
merged 3 commits into from
Jun 17, 2024
Merged

Conversation

orbeckst
Copy link
Member

fix #285

Copy link

codecov bot commented Jun 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.20%. Comparing base (708cbd1) to head (14accee).
Report is 11 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #286   +/-   ##
=======================================
  Coverage   69.20%   69.20%           
=======================================
  Files          22       22           
  Lines        3959     3959           
  Branches      717      717           
=======================================
  Hits         2740     2740           
  Misses       1038     1038           
  Partials      181      181           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

gromacs/core.py Outdated
doc_pattern = """.*?(?P<DOCS>DESCRIPTION.*)"""
gmxfatal_pattern = """----+\n # ---- decorator line
doc_pattern = r""".*?(?P<DOCS>DESCRIPTION.*)"""
gmxfatal_pattern = r"""----+\n # ---- decorator line
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not 100% sure that the newline is actually captured by the raw-string expression.

Ought to check if there's actually a test for that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now there is.

(Of course it hadn't worked ... untested code is broken code!)

- can now recognize newer gromacs messages
- added quick tests for the three fail modes of GromacsCommand
@orbeckst orbeckst merged commit 1d6aa0b into main Jun 17, 2024
19 checks passed
@orbeckst orbeckst deleted the fix-regex branch June 17, 2024 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DeprecationWarning: invalid escape sequence '\s'
1 participant