J x d dl mZ d dlZd dlmZmZmZmZmZ d dl mZ d dlm Z erdZndZ G d d e ZdS ) )TestCaseN) ShouldWarncompareShouldRaise ShouldNotWarn Comparison) PY_37_PLUS)ShouldAssert ,c \ e Zd Zd Zd Zd Zd Zd Zd Zd Z d Z d Zd Zd Z d Zd ZdS )ShouldWarnTestsc , t j d 5 }t t d 5 t j d d d d n# 1 swxY w Y d d d n# 1 swxY w Y t t | d d S )NTrecordfoor expected)warningscatch_warningsr UserWarningwarnr lenselfbackstops t/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/testfixtures/tests/test_shouldwarn.pytest_warn_expectedz"ShouldWarnTests.test_warn_expected s $D 1 1 1 %XK..// % % e$$$ % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % H ******s4 A+AA+A A+A A++A/2A/c t t dt z dz 5 t j d 5 }t 5 t j d d d d n# 1 swxY w Y d d d n# 1 swxY w Y d d d n# 1 swxY w Y t t | d d S )NzMsequence not as expected: same: [] expected: [] actual: [UserWarning('foo')]Tr r r r )r commar r r r r r r s r test_warn_not_expectedz&ShouldWarnTests.test_warn_not_expected sx * +0 0 15 5 ) ) (555 )"__ ) )M%((() ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) H ******sX BA8 A!A8!A%%A8(A%)A8,B8A< <B?A< BBBc V t 5 d d d d S # 1 swxY w Y d S )N)r r s r test_no_warn_expectedz%ShouldWarnTests.test_no_warn_expected&