vDݙx $ d dl Z d dlZd dlZd dlmc mZ d dlmZ d dlm Z ej
j d Zd Z
d Zd Zd Z e j ej j j Zej
ej d k d
d ZdS )
N)Patcher)
unhashablec d | t j d t dS )zLTest fails because EXAMPLE_FILE is cached in the module
and not patched.
stuff herecontentsNcreate_fileexampleEXAMPLE_FILE%check_that_example_file_is_in_fake_fsfss {/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pyfakefs/pytest_tests/pytest_fixture_test.pytest_example_file_failingr s/ NN7',N???)+++++ c d | t j d t dS )zRTest passes if using a fixture that reloads the module containing
EXAMPLE_FILEr r Nr )fs_reload_examples r 'test_example_file_passing_using_fixturer s2 !!'"6!NNN)+++++r c t t g 5 } | j t j d t ddd dS # 1 swxY w Y dS )z[Test passes if using a Patcher instance that reloads the module
containing EXAMPLE_FILE)modules_to_reloadr r N)r r r r
r r
)patchers r 'test_example_file_passing_using_patcherr ' s
G9 - - - 0
w3lKKK-///0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0s 5AA Ac . t t d S )N)printr r s r test_unhashabler / s *r c t t j 5 } | dk sJ d d d n# 1 swxY w Y t j 5 } | dk sJ d d d n# 1 swxY w Y t j dk sJ t j sJ d S )Nr )openr r read read_textis_file)files r r
r
4 sE
g" # # +tyy{{l*****+ + + + + + + + + + + + + + + " " $ $ +yy{{l*****+ + + + + + + + + + + + + + +))++|;;;;'')))))))s# AA A+BBB) z importlib.metadata not available)reasonc t dt j dz }| | rJ | d | | sJ | |dz sJ d S )Nzpytest-z
.dist-infopytestMETADATA)pytest_parent_pathr' __version__existsadd_package_metadata)r pytest_dist_paths r test_add_package_metadatar. @ s *,Tf6H,T,T,TTyy)*****H%%%
99%&&&&&
99%
23333333r )pathlibsysr' pyfakefs.pytest_tests.examplepytest_testsr !pyfakefs.fake_filesystem_unittestr pyfakefs.pytest_testsr markxfailr r r r r
Path__file__parentr) skipifversion_infor. r r