Merge pull request #934 from pytest-dev/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
Bruno Oliveira
2023-08-02 09:51:08 -03:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -22,11 +22,11 @@ repos:
- id: check-yaml - id: check-yaml
- id: debug-statements - id: debug-statements
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/PyCQA/flake8
rev: 6.0.0 rev: 6.1.0
hooks: hooks:
- id: flake8 - id: flake8
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.9.0 rev: v3.10.1
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [--py3-plus] args: [--py3-plus]

View File

@@ -374,7 +374,7 @@ def test_unserialize_warning_msg(w_cls):
v1 = getattr(w_msg, k) v1 = getattr(w_msg, k)
v2 = getattr(w_msg2, k) v2 = getattr(w_msg2, k)
if k == "message": if k == "message":
assert type(v1) == type(v2) assert type(v1) is type(v2)
assert v1.args == v2.args assert v1.args == v2.args
else: else:
assert v1 == v2 assert v1 == v2