Skip to content

Commit

Permalink
fix doctest (py3.10+ adds text to AttributeErrors, see bpo-38530)
Browse files Browse the repository at this point in the history
  • Loading branch information
boeddeker committed Oct 16, 2023
1 parent 72b1c70 commit c149ca2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pb_bss/distribution/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c149ca2

Please sign in to comment.