
    7Th                     &    S r SSKrSSKrSSKrS rg)z
Pyodide and other single-threaded Python builds will be missing the
_multiprocessing module. Test that joblib still works in this environment.
    Nc                    U S-  R                  S5        [        [        R                  5      nSR	                  [        U 5      /[        R                  -   5      US'   [        R                  " [        R                  SS/US9  g)	aL  
Test that import joblib works even if _multiprocessing is missing.

pytest has already imported everything from joblib. The most reasonable way
to test importing joblib with modified environment is to invoke a separate
Python process. This also ensures that we don't break other tests by
importing a bad `_multiprocessing` module.
z_multiprocessing.pyz0raise ImportError("No _multiprocessing module!"):
PYTHONPATHz-czbimport joblib, math; joblib.Parallel(n_jobs=1)(joblib.delayed(math.sqrt)(i**2) for i in range(10)))envN)
write_textdictosenvironjoinstrsyspath
subprocess
check_call
executable)tmp_pathr   s     `/var/www/auris/envauris/lib/python3.13/site-packages/joblib/test/test_missing_multiprocessing.pytest_missing_multiprocessingr      sw     %%11: rzz
C #h-388!;<CNNB	
 	    )__doc__r	   r   r   r    r   r   <module>r      s   
 
  
r   