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() #194

Merged
merged 1 commit into from
Nov 26, 2023

Conversation

rathann
Copy link
Contributor

@rathann rathann commented Nov 21, 2023

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.

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
Copy link
Member

Thank you for your contribution. I didn't upgrade the setup scripts for quite a while, and it looks like there is a failure unrelated to your change.

Give me a few days to fix the issue, and I will get back to merging this.

@stanislaw stanislaw merged commit 83fa66d into mull-project:main Nov 26, 2023
0 of 8 checks passed
@stanislaw
Copy link
Member

The newly released Pip version should have your fix: https://pypi.org/project/filecheck/.

@stanislaw
Copy link
Member

Thank you for your contribution!

@rathann rathann deleted the python-3.13 branch November 28, 2023 12:02
@rathann
Copy link
Contributor Author

rathann commented Nov 28, 2023

You're welcome and thanks for merging this so quickly. We have a proactive Python maintainers team that rebuilds all Python packages in Fedora with upcoming Python versions in advance to catch issues like this early.

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