§ 1j ã ó, — d Z ddlZ G d„ d¦ « ZdS )aß This is a fork of the pymox library intended to work with Python 3. The file was modified by quermit@gmail.com and dawid.fatyga@gmail.com Previously, pyfakefs used just this file from the mox3 library. However, mox3 will soon be decommissioned, yet standard mock cannot be used because of the problem described in pyfakefs #182 and mock issue 250 (https://github.com/testing-cabal/mock/issues/250). Therefore just this file was forked from mox3 and incorporated into pyfakefs. é Nc ó6 — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z dS ) ÚStubOutForTestingaˆ Sample Usage: You want os.path.exists() to always return true during testing. stubs = StubOutForTesting() stubs.Set(os.path, 'exists', lambda x: 1) ... stubs.UnsetAll() The above changes os.path.exists into a lambda that returns 1. Once the ... part of the code finishes, the UnsetAll() looks up the old value of os.path.exists and restores it. c ó" — g | _ g | _ d S ©N)ÚcacheÚstubs©Úselfs úg/builddir/build/BUILD/cloudlinux-venv-1.0.11/venv/lib/python3.11/site-packages/pyfakefs/mox3_stubout.pyÚ__init__zStubOutForTesting.__init__. s € ؈Œ ؈Œ ˆ ˆ ó c óV — | ¦ « | ¦ « d S r )Úsmart_unset_allÚ unset_allr s r Ú__del__zStubOutForTesting.__del__2 s* € Ø×ÒÑÔÐØ�ŠÑÔÐÐÐr c ó> — t j |¦ « st j |¦ « s%||j v r|}||j v r|j | }nšd}n—t j |¦ « s't t j |j ¦ « ¦ « }n!t t j |¦ « ¦ « }| ¦ « d}|D ]"} |}|j | }Œ# t $ r Y Œw xY w|€t d¦ « ‚| j |||f¦ « ||j |<