§
    2@Äj�  ã                   óX   — d dl Z d dlZd dlZd dlZd dlmZ  G d„ de j        ¦  «        ZdS )é    N)ÚPathc                   ó   — e Zd Zd„ ZdS )ÚTestUnpickleDeletedModulec                 ó  — d                      g d¢¦  «        }d}t          j        ¦   «         5 }t          j                             |¦  «         t          |› d|› d�¦  «        }t          |d¦  «        }|                     |¦  «         | 	                    ¦   «          ddl
m} d	d	d	¦  «         n# 1 swxY w Y   t          j        |= t          j        |¦  «        }t          j        |¦  «        }|                       |d
¦  «        d¦  «         d	S )a“  Create a module that uses Numba, import a function from it.
        Then delete the module and pickle the function. The function
        should load from the pickle without a problem.

        Note - This is a simplified version of how Numba might be used
        on a distributed system using e.g. dask distributed. With the
        pickle being sent to the worker but not the original module.
        ú
)zfrom numba import vectorizez @vectorize(['float64(float64)'])zdef inc1(x):z    return x + 1Ú
tmp_moduleú/z.pyÚar   )Úinc1Né   é   )ÚjoinÚtempfileÚTemporaryDirectoryÚsysÚpathÚappendr   ÚopenÚwriteÚcloser   r   ÚmodulesÚpickleÚdumpsÚloadsÚassertEqual)ÚselfÚsourceÚmodnameÚtmp_dirÚfilenameÚfr   Úpkls           úYC:\Projects\Historical\venv\Lib\site-packages\numba/tests/test_unpickle_without_module.pyÚ"test_loading_pickle_with_no_modulez<TestUnpickleDeletedModule.test_loading_pickle_with_no_module	   sQ  € ð —’ðð ð ñ
ô 
ˆð ˆÝÔ(Ñ*Ô*ð 
	(¨gÝŒH�OŠO˜GÑ$Ô$Ð$õ ˜wÐ5Ð5¨Ð5Ð5Ð5Ñ6Ô6ˆHÝ�X˜sÑ#Ô#ˆAØ�GŠG�F‰OŒOˆOØ�GŠG‰IŒIˆIð (Ð'Ð'Ð'Ð'Ð'ð
	(ð 
	(ð 
	(ñ 
	(ô 
	(ð 
	(ð 
	(ð 
	(ð 
	(ð 
	(ð 
	(øøøð 
	(ð 
	(ð 
	(ð 
	(õ ŒK˜Ð õ Œl˜4Ñ Ô ˆÝŒL˜ÑÔˆØ×Ò˜˜˜1™œ˜qÑ!Ô!Ð!Ð!Ð!s   ­A4B-Â-B1Â4B1N)Ú__name__Ú
__module__Ú__qualname__r$   © ó    r#   r   r      s#   € € € € € ð("ð ("ð ("ð ("ð ("r)   r   )Úunittestr   r   r   Úpathlibr   ÚTestCaser   r(   r)   r#   ú<module>r-      sr   ðØ €€€Ø €€€Ø 
€
€
€
Ø €€€Ø Ð Ð Ð Ð Ð ð)"ð )"ð )"ð )"ð )" Ô 1ñ )"ô )"ð )"ð )"ð )"r)   