
    h                        S r SSKrS\R                  S'   SrS rS rS r " S	 S
\5      rSSKJ	r	  SSKJ
r
  \
" SSS9  \	S   r\	S   R                  5         \	S   R                  5         S\	;   a  \	S   R                  5         \	S   R                  5         \	S   R                  5         \	S   R                  5         C	S rS rS rS r\S:X  a$  \" 5         \" 5         \" 5         \" 5         \" 5         gg)z$
testing some selected object types
    NTrecurseFc                     [         R                  n U R                  5        HN  u  p[        R                  " U5      n[
        (       a  [        U< S[        U5      < SU< 35        U(       a  MN   e   [
        (       a  [        S5        g g N: ,  )type__dict__itemsdillpicklesverboseprint)cijoks       R/home/james-whalen/.local/lib/python3.13/site-packages/dill/tests/test_selected.pytest_dict_contentsr      s[    
mm!WWYca	aB wr47A672I2  WeRjW    c              #      #    U v   g 7fN )xs    r   _gr      s	     7s   c                  J    e ! [          a    SSKJn   U " 5       u  pnX#4s $ f = f)Nr   )exc_info)	Exceptionsysr   )r   eertbs       r   _fr#      s)    	 
IA26Ms    ""c                       \ rS rSrS rSrg)_d%   c                     g r   r   )selfs    r   _method
_d._method&   s    r   r   N)__name__
__module____qualname____firstlineno__r)   __static_attributes__r   r   r   r%   r%   %   s    	r   r%   )objects)
load_types)
pickleableunpickleableClassObjectTypeTemporaryFileTypeTextWrapperTypeBufferedRandomTypeBufferedReaderTypeBufferedWriterTypeFileTypec                     [         R                  n U R                  5        HL  n[        R                  " U5      n[
        (       a  [        U< S[        U5      < SU< 35        U(       a  ML   e   [
        (       a  [        S5        [        R                  nUR                  5        HL  n[        R                  " U5      n[
        (       a  [        U< S[        U5      < SU< 35        U(       a  ML   e   [
        (       a  [        S5        g g r   )	r%   r
   valuesr   r   r   r   r	   	_newclass)dr   r   ods       r   test_class_descriptorsr@   8   s    kk!88:a	aBwr47A672I2  WeRj"99;a	aBwr47A672I2  WeRjWr   c                  ~   [        5       n [        5       n[        R                  " U 5      n[        (       a  [        U< S[        U 5      < SU < 35        U(       d   e[        R                  " U5      n[        (       a  [        U< S[        U5      < SU< 35        U(       d   e[        (       a  [        S5        g g r   )r%   r=   r   r   r   r   r	   )ooor   s      r   
test_classrD   G   st    d!{"||A"WeRa!45	)||B"WeRb267	)WeRjWr   c                     [        S5      n U R                  n[        5       u  p#S n[        R                  " U5      n[
        (       a  [        U< S[        U5      < SU< 35        U(       a   e[        R                  " U 5      n[
        (       a  [        U< S[        U 5      < SU < 35        U" U(       + 5      (       d   e[        R                  " U5      n[
        (       a  [        U< S[        U5      < SU< 35        U(       a   e[        R                  " U5      n[
        (       a  [        U< S[        U5      < SU< 35        U(       d   e[
        (       a  [        S5        g g )N   c                     U $ r   r   )r   s    r   <lambda>$test_frame_related.<locals>.<lambda>W   s    2r   r   r   r   )r   gi_framer#   r   r   r   r   r	   )gfr    t_isr   s         r   test_frame_relatedrO   S   s    e!jj!
#!#||A"WeRa!45-||A"WeRa!45	V||A"WeRa!45-||A"WeRa!45	)WeRjWr   c                     SS K n U R                  nU[        R                  " U5      :X  d   eU R                  [
        [        4   nU[        R                  " U5      :X  d   eU R                  [
           nU[        R                  " U5      :X  d   eU R                  [
        [        4   nU[        R                  " U5      :X  d   eU R                  [
           nU[        R                  " U5      :X  d   eU R                  S   nU[        R                  " U5      :X  d   eU R                  S   R                  S5      nU[        R                  " U5      :X  d   eg )Nr   r   )
typingAnyr   copyDictintstrListTuple	copy_with)rQ   r   s     r   test_typingrZ   f   s   jj!	
diil		kk#s(!	
diil		kk#!	
diil		ll38!	
diil		ll3!	
diil		ll2!	
diil		ll2  $!	
diil		r   __main__)__doc__r   settingsr   r   r   r#   objectr%   r0   r1   r=   closer@   rD   rO   rZ   r+   r   r   r   <module>r`      s   i 
	 	 	   
d .%&	   " " $       "7" !'')   # # %   # # % 
    	&	& z,- r   