Content-Type: multipart/mixed; boundary="===============1842174621204190350==" MIME-Version: 1.0 From: Andrew Zaborowski Subject: [PATCH 7/8] autotests: Move some variables from IWD class to instance Date: Tue, 29 Sep 2020 18:37:16 +0200 Message-ID: <20200929163717.754459-13-andrew.zaborowski@intel.com> In-Reply-To: <20200929163717.754459-1-andrew.zaborowski@intel.com> List-Id: To: iwd@lists.01.org --===============1842174621204190350== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable These variables were probably meant as instance members and not class members. --- autotests/util/iwd.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py index 7e3676d9..94a118ce 100755 --- a/autotests/util/iwd.py +++ b/autotests/util/iwd.py @@ -231,9 +231,12 @@ class Device(IWDDBusAbstract): with its properties and methods ''' _iface_name =3D IWD_DEVICE_INTERFACE - _wps_manager_if =3D None - _station_if =3D None - _station_props =3D None + + def __init__(self, *args, **kwargs): + self._wps_manager_if =3D None + self._station_if =3D None + self._station_props =3D None + IWDDBusAbstract.__init__(self, *args, **kwargs) = @property def _wps_manager(self): -- = 2.25.1 --===============1842174621204190350==--