
    hw              	          d Z ddlZddlZddlZddlZddlZddlmZ  ej                  ej                  j                  e            dz  Z ej                  d      d        Z ej                   eedz  d	z              Z ej                  eeD  cg c]  } | j%                  d
      d    c}       d        Zej(                  j+                  d      d        Zd Zyc c} w )zM
See generate_legacy_storage_files.py for the creation of the legacy files.

    N)assert_geodataframe_equaldatamodule)scopec                      ddl m}   |        S )N   create_pickle_data)generate_legacy_storage_filesr
   r	   s    Q/var/www/html/immo/lib/python3.12/site-packages/geopandas/io/tests/test_pickle.pycurrent_pickle_datar      s     B    picklez*.pickle/)paramsidsc                     | j                   S N)param)requests    r   legacy_pickler      s    ==r   z]shapely 2.0/pygeos-based unpickling currently only works for shapely-2.0/pygeos-written files)reasonc                     t        j                  |      }|j                         D ]  \  }}| |   }t        ||        y r   )pdread_pickleitemsr   )r   r   resultnamevalueexpecteds         r   test_legacy_picklesr"   "   s?     ^^M*F||~ 3e&t,!%23r   c                     |}|j                         D ]d  \  }}t        | | dz        }|j                  |       t        j                  |      }t        ||       t        |j                  t              rdJ  y )Nz.pickle)	r   str	to_pickler   r   r   
isinstance
has_sindexbool)tmpdirr   r   r   r    pathr   s          r   test_round_trip_currentr+   0   sp    Dzz| 3e6tfG,,-%!&%0&++T2223r   )__doc__globospathlibpandasr   pytestgeopandas.testingr   Pathr*   dirname__file__	DATA_PATHfixturer   r$   filessplitr   markskipr"   r+   )ps   0r   <module>r=      s   
  	    7GLL23f<	 h     			#i(*Z789 uU"C1773<#3"CD E 	+  333' #Ds   C"
