Skip to content

Fix pytest warnings #7928

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

Merged
merged 1 commit into from
Apr 16, 2021
Merged

Fix pytest warnings #7928

merged 1 commit into from
Apr 16, 2021

Conversation

adamchainz
Copy link
Contributor

@adamchainz adamchainz commented Apr 16, 2021

  • Use --strict-markers instead of --strict, as per this warning:

    /.../_pytest/config/__init__.py:1183: PytestDeprecationWarning: The --strict option is deprecated, use --strict-markers instead.
    
  • Remove config option 'testspath' - pytest is logging a warning about this being unknown:

    /.../_pytest/config/__init__.py:1233: PytestConfigWarning: Unknown config option: testspath
    

    I can't find any reference to it in the pytest docs or changelog.

* Use `--strict-markers` instead of `--strict`, as per this warning:

  ```
  /.../_pytest/config/__init__.py:1183: PytestDeprecationWarning: The --strict option is deprecated, use --strict-markers instead.
  ```

* Remove config option 'testspath' - pytest is logging a warning about this being unknown:

  ```
  /.../_pytest/config/__init__.py:1233: PytestConfigWarning: Unknown config option: testspath
  ```

  I can't find any reference to it in the pytest docs or changelog.
@adamchainz adamchainz changed the title Remove pytest config 'testspath' Fix pytest warnings Apr 16, 2021
@adamchainz adamchainz merged commit 67b5093 into encode:master Apr 16, 2021
@adamchainz adamchainz deleted the remove_testspath branch April 16, 2021 16:47
sigvef pushed a commit to sigvef/django-rest-framework that referenced this pull request Dec 3, 2022
* Use `--strict-markers` instead of `--strict`, as per this warning:

  ```
  /.../_pytest/config/__init__.py:1183: PytestDeprecationWarning: The --strict option is deprecated, use --strict-markers instead.
  ```

* Remove config option 'testspath' - pytest is logging a warning about this being unknown:

  ```
  /.../_pytest/config/__init__.py:1233: PytestConfigWarning: Unknown config option: testspath
  ```

  I can't find any reference to it in the pytest docs or changelog.
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.

1 participant