From 6cdc03dce73dc10454aad456b7fce25bc55887cb Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 12 Mar 2024 10:03:38 +0100 Subject: shiboken tests/smartbinding: Fix flake8 warnings Pick-to: 6.5 Change-Id: Iecc01ad457053f5ce59512ea66cb0347f54334c7 Reviewed-by: Shyamnath Premnadh (cherry picked from commit b9a77537b8d7194b6cce020e059098e6efa4d930) Reviewed-by: Qt Cherry-pick Bot --- sources/shiboken6/tests/smartbinding/smart_pointer_test.py | 2 +- sources/shiboken6/tests/smartbinding/std_optional_test.py | 1 - sources/shiboken6/tests/smartbinding/std_shared_ptr_test.py | 1 - sources/shiboken6/tests/smartbinding/std_unique_ptr_test.py | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/sources/shiboken6/tests/smartbinding/smart_pointer_test.py b/sources/shiboken6/tests/smartbinding/smart_pointer_test.py index 1bec3a286..8d4272558 100644 --- a/sources/shiboken6/tests/smartbinding/smart_pointer_test.py +++ b/sources/shiboken6/tests/smartbinding/smart_pointer_test.py @@ -262,7 +262,7 @@ class SmartPointerTests(unittest.TestCase): self.assertTrue(five > four) self.assertRaises(NotImplementedError, - lambda : Obj.createNullSharedPtrInteger() == four) + lambda: Obj.createNullSharedPtrInteger() == four) def testSmartPointerObjectComparison(self): """Test a pointee class without comparison operators.""" diff --git a/sources/shiboken6/tests/smartbinding/std_optional_test.py b/sources/shiboken6/tests/smartbinding/std_optional_test.py index be969d0f5..bee573548 100644 --- a/sources/shiboken6/tests/smartbinding/std_optional_test.py +++ b/sources/shiboken6/tests/smartbinding/std_optional_test.py @@ -2,7 +2,6 @@ # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 -import gc import os import sys import unittest diff --git a/sources/shiboken6/tests/smartbinding/std_shared_ptr_test.py b/sources/shiboken6/tests/smartbinding/std_shared_ptr_test.py index 1933b5334..2e6aea3d9 100644 --- a/sources/shiboken6/tests/smartbinding/std_shared_ptr_test.py +++ b/sources/shiboken6/tests/smartbinding/std_shared_ptr_test.py @@ -2,7 +2,6 @@ # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 -import gc import os import sys import unittest diff --git a/sources/shiboken6/tests/smartbinding/std_unique_ptr_test.py b/sources/shiboken6/tests/smartbinding/std_unique_ptr_test.py index 0f4729413..9c7ef2f01 100644 --- a/sources/shiboken6/tests/smartbinding/std_unique_ptr_test.py +++ b/sources/shiboken6/tests/smartbinding/std_unique_ptr_test.py @@ -2,7 +2,6 @@ # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 -import gc import os import sys import unittest -- cgit v1.2.3