Age | Commit message (Collapse) | Author |
|
We're deprecating vim modelines in favor of `.editorconfig`.
Removing vim modelines could be done using two one-liners. Most of the vim modelines
were followed by an empty line, so this one-liner took care of these ones:
```sh
rg '^# vim: .+\n\n' -l | xargs sed -i '/^# vim: /,+1d'
```
Then some of the vim modelines were followed by a pylint configuration line, so running
this one-liner afterwards took care of that:
```sh
rg '^# vim:' -l | xargs sed -i '/^# vim: /d'
```
|
|
This reverts commit 47be6f3aeb886cf10f85158af18b13906fc68704.
This doesn't really make sense in test files, as the warning would point
inside some internal pytest code, which is not helpful.
Instead, let's just disable the corresponding flake8 warning in tests.
|
|
flake8-bugbear B028 No explicit stacklevel keyword argument found. The
warn method from the warnings module uses a stacklevel of 1 by default.
This will only show a stack trace for the line on which the warn method
is called. It is therefore recommended to use a stacklevel of 2 or
greater to provide more information to the user.
Semgrep helped:
semgrep --lang=py -e 'warnings.warn($ARG)' --replacement 'warnings.warn($ARG, stacklevel=2)' $FILES -a
semgrep --lang=py -e 'warnings.warn($ARG1, $ARG2)' --replacement 'warnings.warn($ARG1, $ARG2, stacklevel=2)' $FILES -a
Although it did lose the f-string on one of them.
|
|
|
|
Closes #6015
|
|
|
|
|
|
|
|
|
|
|
|
We need to use strict=False here as test_installed_package can XPASS when
running frozen tests.
|
|
|
|
This avoids deprecation warnings emitted by python 3.5 and pytest 2.8.
|
|
|
|
Conflicts:
tests/test_conftest.py
tox.ini
|
|
https://github.com/pytest-dev/pytest-bdd/issues/153
|
|
|
|
Fixes #982.
|
|
|
|
We used qapp in a session scoped fixture, which means testing without DISPLAY
skipped all tests.
|