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

Commits on Nov 21, 2023

  1. Pass count as keyword argument to re.sub()

    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.
    rathann committed Nov 21, 2023
    Configuration menu
    Copy the full SHA
    2864540 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2023

  1. Configuration menu
    Copy the full SHA
    83fa66d View commit details
    Browse the repository at this point in the history