From c149ca2c504fe0005e14d73aca89ea4b0bc2d881 Mon Sep 17 00:00:00 2001 From: Christoph Boeddeker Date: Mon, 16 Oct 2023 18:16:42 +0200 Subject: [PATCH] fix doctest (py3.10+ adds text to AttributeErrors, see bpo-38530) --- pb_bss/distribution/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pb_bss/distribution/utils.py b/pb_bss/distribution/utils.py index 294efbf..e0c55ce 100644 --- a/pb_bss/distribution/utils.py +++ b/pb_bss/distribution/utils.py @@ -197,16 +197,16 @@ def __getattr__(self, name): ... CACGMM, ... ) >>> model = ComplexAngularCentralGaussian() - >>> model.covariances + >>> model.covariances # doctest: +ELLIPSIS Traceback (most recent call last): ... AttributeError: 'ComplexAngularCentralGaussian' object has no attribute 'covariances'. - Close matches: ['covariance_eigenvalues', 'covariance_eigenvectors'] - >>> model.abc + Close matches: ['covariance_eigenvalues', 'covariance_eigenvectors']... + >>> model.abc # doctest: +ELLIPSIS Traceback (most recent call last): ... AttributeError: 'ComplexAngularCentralGaussian' object has no attribute 'abc'. - Close matches: ['covariance_eigenvectors', 'covariance_eigenvalues'] + Close matches: ['covariance_eigenvectors', 'covariance_eigenvalues']... """ import difflib