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

Pass count as keyword argument to re.sub() #197

Merged
merged 2 commits into from
Nov 26, 2023
Merged

Conversation

stanislaw
Copy link
Member

No description provided.

rathann and others added 2 commits November 21, 2023 15:32
This fixes two test failures under Python 3.13:

```
Failed Tests (2):
  FileCheck.py integration tests :: tests/extra_features/pseudo_numeric_variables/01_line_variable_once/test.itest
  FileCheck.py integration tests :: tests/extra_features/pseudo_numeric_variables/02_line_variable_twice/test.itest
```

Both are failing due to:

```
filecheck/filecheck.py:372: DeprecationWarning: 'count' is passed as positional argument
```

Passing `count` as positional argument to `re.sub()` has been deprecated
in Python 3.13: https://docs.python.org/3.13/whatsnew/3.13.html#id9
and produces a `DeprecationWarning` exception.
@stanislaw stanislaw merged commit 20bf178 into main Nov 26, 2023
17 checks passed
@stanislaw stanislaw deleted the stanislaw/python_313 branch November 26, 2023 17:10
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.

2 participants