From b093bc7554ddd1e081ad7afb3e5bd22ce62027e2 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Sat, 19 Mar 2022 12:03:12 +0100 Subject: [PATCH] Revert empty slot test Also disable pyupgrade on that file. Signed-off-by: Hynek Schlawack --- .pre-commit-config.yaml | 1 + tests/test_slots.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 64a537ac5..688bdf0c4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,6 +13,7 @@ repos: hooks: - id: pyupgrade args: [--py3-plus, --keep-percent-format] + exclude: "tests/test_slots.py" - repo: https://github.com/PyCQA/isort rev: 5.10.1 diff --git a/tests/test_slots.py b/tests/test_slots.py index bde9d447a..89e7e93f2 100644 --- a/tests/test_slots.py +++ b/tests/test_slots.py @@ -627,7 +627,7 @@ class C: field = attr.ib() def f(self, a): - super().__init__() + super(C, self).__init__() C(field=1)