python (3.12.0)

(root)/
lib/
python3.12/
test/
__pycache__/
test_pprint.cpython-312.opt-2.pyc

ΑeXddlZddlZddlZddlZddlZddlZddlZddlZddl	Zddl
Z
ddlZGddeZ
GddeZGddeZGdd	eZGd
deZGdd
eZGddeZGddeZGddeZGddeZGddeZGddeZGddeZGddeZGddeZej@Gd d!Z!ej@Gd"d#Z"ej@d$%Gd&d'Z#ej@Gd(d)Z$ej@Gd*d+Z%ej@Gd,d-Z&Gd.d/Z'Gd0d1Z(Gd2d3ejRZ*Gd4d5ejVZ,e-d6k(rej\yy)7NceZdZy)list2N__name__
__module____qualname__D/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test_pprint.pyrrr
rceZdZdZy)list3c,tj|SN)list__repr__selfs rrzlist3.__repr__}}T""r
Nrrrrr	r
rrr#r
rceZdZdZy)list_custom_reprcDdttj|zSN*)lenrrrs rrzlist_custom_repr.__repr__3t}}T*+++r
Nrr	r
rrr,r
rceZdZy)tuple2Nrr	r
rr!r!rr
r!ceZdZdZy)tuple3c,tj|Sr)tuplerrs rrztuple3.__repr__s~~d##r
Nrr	r
rr#r#s$r
r#ceZdZdZy)tuple_custom_reprcDdttj|zSr)rr%rrs rrztuple_custom_repr.__repr__#s3u~~d+,,,r
Nrr	r
rr'r'"s-r
r'ceZdZy)set2Nrr	r
rr*r*&rr
r*ceZdZdZy)set3c,tj|Sr)setrrs rrz
set3.__repr__*s||D!!r
Nrr	r
rr,r,)s"r
r,ceZdZdZy)set_custom_reprcDdttj|zSr)rr.rrs rrzset_custom_repr.__repr__.s3s||D)***r
Nrr	r
rr0r0-s+r
r0ceZdZy)
frozenset2Nrr	r
rr3r31rr
r3ceZdZdZy)
frozenset3c,tj|Sr)	frozensetrrs rrzfrozenset3.__repr__5s!!$''r
Nrr	r
rr5r54s(r
r5ceZdZdZy)frozenset_custom_reprcDdttj|zSr)rr7rrs rrzfrozenset_custom_repr.__repr__9s3y))$/000r
Nrr	r
rr9r98s1r
r9ceZdZy)dict2Nrr	r
rr<r<<rr
r<ceZdZdZy)dict3c,tj|Sr)dictrrs rrzdict3.__repr__@rr
Nrr	r
rr>r>?rr
r>ceZdZdZy)dict_custom_reprcDdttj|zSr)rr@rrs rrzdict_custom_repr.__repr__Drr
Nrr	r
rrBrBCrr
rBcbeZdZUeed<eed<dZeed<ejddZ
eed<y)	
dataclass1field1field2Ffield3)defaultreprfield4N)rrrstr__annotations__intrHbooldataclassesfieldrLr	r
rrErEGs/KKFD#+##AE:FC:r
rEc"eZdZUdZeed<dZy)
dataclass2rIacy)N0custom repr that doesn't fit within pprint widthr	rs rrzdataclass2.__repr__QsAr
N)rrrrUrOrNrr	r
rrTrTNs
AsJBr
rTF)rKceZdZUdZeed<y)
dataclass3rIrUN)rrrrUrOrNr	r
rrYrYTs
AsJr
rYc&eZdZUded<dZeed<y)
dataclass4rUrIbNrrrrNr\rOr	r
rr[r[XO
AsJr
r[c&eZdZUded<dZeed<y)
dataclass5
dataclass6rUrIr\Nr]r	r
rr`r`]r^r
r`c&eZdZUded<dZeed<y)rar`crIdN)rrrrNrdrOr	r
rrarabr^r
raceZdZdZy)Unorderablec*tt|Sr)rMidrs rrzUnorderable.__repr__hs2d8}r
Nrr	r
rrfrfgsr
rfc<eZdZdZdZdZdZdZdZdZ	dZ
y	)
	Orderablec||_yr_hash)rhashs  r__init__zOrderable.__init__ms	
r
cy)NFr	rothers  r__lt__zOrderable.__lt__osr
c||k7Srr	rqs  r__gt__zOrderable.__gt__qu}r
c||k(Srr	rqs  r__le__zOrderable.__le__srvr
cy)NTr	rqs  r__ge__zOrderable.__ge__usr
c
||uSrr	rqs  r__eq__zOrderable.__eq__wsu}r
c
||uSrr	rqs  r__ne__zOrderable.__ne__ys
5  r
c|jSrrlrs r__hash__zOrderable.__hash__{szzr
N)rrrrorsrurxrzr|r~rr	r
rrjrjls*!r
rjcjeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZe jBe"jFjHdZ%dZ&d Z'd!Z(d"Z)d#Z*d$Z+d%Z,d&Z-d'Z.d(Z/d)Z0d*Z1d+Z2d,Z3d-Z4y.)/
QueryTestCasecttd|_ttd|_|j|jd<y)Ndi)rrangerUr\rs rsetUpzQueryTestCase.setUps3eCj!eCj!ffsr
ctj}tjdddtjd}tjdddtj}tjd}|j	t
5tjdddtjd}ddd|j	ttjd	|j	ttjd
|j	ttjd|j	ttjd
y#1swYxYw)
N(T)indentwidthdepthstreamcompactF
sort_dictsrrrr)pprint
PrettyPrinterioStringIOassertRaises	TypeError
ValueError)rpps  r	test_initzQueryTestCase.test_inits

!
!
#

!
!"A)+F

!
!!RBKKM
:

!
!U
3


y
)	E%%aQ
tDB	E*f&:&:2F*f&:&:!D*f&:&:"E*f&:&:!D	E	Es,E##E,ctj}dddddgdddidtdd	d
dd|j|jfD]}|jtj|d||jtj|d
||j|j
|d||j|j|d
|y)Ng@y@abc)rrsdefsghiTF.expected not isrecursive for expected isreadable for )	rr	bytearrayrUr\assertFalseisrecursive
assertTrue
isreadable)rrsafes   r
test_basiczQueryTestCase.test_basics

!
!
#RUQFFv&eT3VVTVV%	DD
V//5BFH
JOOF--d3<@B
D
R^^D1BFH
JOOBMM$/<@B
D	Dr
ctjd5d}tj|tjj|dddy#1swYyxYw)Nzthis should not fail)
contextlibredirect_stdoutrr)rvalues  rtest_stdout_is_Nonez!QueryTestCase.test_stdout_is_NonesM

'
'
-	1*EMM%   "))%0		1	1	1s;AA#c|j|jd<i|_|jx|jd<x|jd<|jd<tj}|j|j|j|j|jffD]}|jtj|d|jtj|d|j|j
|d|j|j|d|jj|jdd=|jdd=|j|j|j|j|jffD]}|jtj|d||jtj|d||j|j
|d||j|j|d|y)	NCrrIrzexpected isrecursivezexpected not isreadablerr)
rUr\rdrrrrrrclear)rrickyrs    rtest_knottedzQueryTestCase.test_knottedsVVr
,0FF2q	2DFF1Iq	

!
!
#FFDFFDFFTVVTVV,<<	MDOOF..t46LMV..t46OPOOBNN402HIR]]402KL		M	
FF1IFF1IFFDFFDFFTVVTVV,<<
	DDV//5BFH
JOOF--d3<@B
D
R^^D1BFH
JOOBMM$/<@B
D
	Dr
ctj}ttttjfD]}|jtj|d||jtj|d||j|j	|d||j|j
|d|y)Nrzexpected not isreadable for )rrobjectrOrrr)rr
unreadables   rtest_unreadablezQueryTestCase.test_unreadables

!
!
# (C1C1CC
	OJV//
;BLN
PV..z:AKM
O
R^^J7BLN
PR]]:6AKM
O
	Or
cgddddddtdttgtt	tt
ttttitt|jtdddd	d
dtddd
gd
didd
dgdditdtdttdd
dgtd
dgt	d
dgt	tdtdht
dhtdhtdhtdhtdhtdditdditdddddddD]}t!|}|j#tj$|||j#tj$|ddj'dd||j#tj$|d||j#tj(||y) Nrygr
r	iygxxrr)rIrrrr
irTF.rIrr
 underscore_numbers)rr!r#rrr.r*r,r7r3r5r<r>rrrrKassertEqualpformatreplacesaferepr)rsimplenatives   rtest_same_as_reprzQueryTestCase.test_same_as_reprsMq!T3C!8%+X 7$)Gu#f'+f!{	%/L	3=,	

!7
%*G
)/
 %'+-0268A S$%a& !e'(Ve}'-Um6<E#J5G!u$QqEl-21Q%L;@c
:KA3x"&qc-1!I!!~(21#9CA3aV}',QFmRb) ! #! %)! +.!	>F$&\FV^^F3V<V^^F!AF%gdC0&
:V^^FtLfUV__V4f=/	>r
cd}ttgdtt|ttgdtt|ttgdtt|t	t	gdt	t|ttdditt
t|t|fD]}t|}dt|z}|jtj|||jtj|dd||jtj||y)	N)rIrrrrrrIrr)
rrr'r0r9rBziprKrrrrr)rNcontrexpecteds     r#test_container_repr_override_calledz1QueryTestCase.test_container_repr_override_calleds&'%g.%eAh/&(&w/&uQx0$&$W-$U1X.*,*73*584%'%q!f-%c%(58&<=	>D $ZFS[(HV^^D18<V^^D!DhOV__T2H=)	>r
c dddddddd}d}ttfD]-}|jtj|||/td}ddj
tt|z}ttfD]-}|jtj|||/ttd}d	dj
tt|z}ttfD]-}|jtj|||/td}d
dj
tt|z}ttfD]/}|jtj||d
|1y)Nrii)RPM_calRPM_cal2	Speed_calcontroldesk_runtime_usmain_code_runtime_usread_io_runtime_uswrite_io_runtime_usz{'RPM_cal': 0,
 'RPM_cal2': 48059,
 'Speed_cal': 0,
 'controldesk_runtime_us': 0,
 'main_code_runtime_us': 0,
 'read_io_runtime_us': 0,
 'write_io_runtime_us': 43690}rz[%s],
 z(%s)z[   %s]z,
    rr)
r@r<rrrrjoinmaprMrrr%r!)roexptypes    rtest_basic_line_wrapz"QueryTestCase.test_basic_line_wraps\'(%&#$$)

+"5M	;DV^^DG4c:	;
#Jv{{3sA;//5M	;DV^^DG4c:	;
%*v{{3sA;//FO	;DV^^DG4c:	;
#J)..S!555M	EDV^^DGA>D	Er
cttd}tddd}||g}d}|jt	j
|dd	|d
}|jt	j
|dd	|y)NrrIrr)firstsecondthirdzN[   [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
    {'first': 1, 'second': 2, 'third': 3}]r*)rrza[   [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
    {   'first': 1,
        'second': 2,
        'third': 3}]))rrr@rrr)ro1o2rrs     rtest_nested_indentationsz&QueryTestCase.test_nested_indentations;sr
%)_
!1
-
H.	
!2>I
	
!2>Ir
cVd}t|}|jtj|d||jtj|d||jtj|d||jtj|ddy)Nz[[[[[[1, 2, 3],
     '1 2']]]],
 {1: [1, 2, 3],
  2: [12, 34]},
 'abc def ghi',
 ('ab cd ef',),
 set2({1, 23}),
 [[[[[1, 2, 3],
     '1 2']]]]]rz[[[[[[1,
      2,
      3],
     '1 '
     '2']]]],
 {1: [1,
      2,
      3],
  2: [12,
      34]},
 'abc def '
 'ghi',
 ('ab cd '
  'ef',),
 set2({1,
       23}),
 [[[[[1,
      2,
      3],
     '1 '
     '2']]]]])evalrrr)rrrs   r
test_widthzQueryTestCase.test_widthJs	
N4h?4h?4h?47	r
c|jtjdd|jtjdddGfddt|jtjdd	y)
Ni1234567Tr	1_234_567c(eZdZfdZdZxZS)/QueryTestCase.test_integer.<locals>.Temperaturec$t||Sr)super__new__)clscelsius_degreesTemperature	__class__s  rrz7QueryTestCase.test_integer.<locals>.Temperature.__new__usw{ODDr
c|dz}|dS)Ngfffffq@u°Kr	)rkelvin_degreess  rrz8QueryTestCase.test_integer.<locals>.Temperature.__repr__ws!%()--r
)rrrrr
__classcell__)rrs@rrrts
E
.r
rru
1273.15°K)rrrrO)rrs @rtest_integerzQueryTestCase.test_integerpsc0)<DI;W	.#	.	
D(9:LIr
cdddd}|jtj|d|jtj||gd|jtjdggiddy)NrIrUr\rcz{'a': 1, 'b': 1, 'c': 1}z4[{'a': 1, 'b': 1, 'c': 1}, {'a': 1, 'b': 1, 'c': 1}]r)zxy	ab
rr	z#{5: [[]], 'xy\tab\n': (3,), (): {}})rrrrrds  rtest_sorted_dictzQueryTestCase.test_sorted_dict|sr
!!$*,FGA/B	D	
Trd(KL2	4r
ctjd}|jtj|dd|jtj||gddy)NcbaFrz!{'c': None, 'b': None, 'a': None}zF[{'c': None, 'b': None, 'a': None}, {'c': None, 'b': None, 'a': None}])r@fromkeysrrrrs  rtest_sort_dictzQueryTestCase.test_sort_dictsOMM% e<>abA5AT	Vr
ctj}|jtj|ddtjg}|jtj|dddj}tjt
|tj}|jtj|dy)NrIrz
OrderedDict()*the quick brown fox jumped over a lazy dogzOrderedDict([('the', 0),
             ('quick', 1),
             ('brown', 2),
             ('fox', 3),
             ('jumped', 4),
             ('over', 5),
             ('a', 6),
             ('lazy', 7),
             ('dog', 8)]))	collectionsOrderedDictrrrsplitr	itertoolscountrrdwordss   rtest_ordered_dictzQueryTestCase.test_ordered_dicts##%3_E##B'3_E<BBD##Cy/@$AB*	
	r
cdj}tt|tj}tj|}|jtj|dtjt|tj}tj|}|jtj|dy)Nrzmappingproxy({'a': 6,
              'brown': 2,
              'dog': 8,
              'fox': 3,
              'jumped': 4,
              'lazy': 7,
              'over': 5,
              'quick': 1,
              'the': 0})a^mappingproxy(OrderedDict([('the', 0),
                          ('quick', 1),
                          ('brown', 2),
                          ('fox', 3),
                          ('jumped', 4),
                          ('over', 5),
                          ('a', 6),
                          ('lazy', 7),
                          ('dog', 8)])))rr@rrrtypesMappingProxyTyperrrrr)rrrdms    rtest_mapping_proxyz QueryTestCase.test_mapping_proxys<BBDUIOO-./""1%*	-		
##Cy/@$AB""1%*	-+		,r
cztj}tj|}|j	|dy)Nznamespace()rSimpleNamespacerrrrns	formatteds   rtest_empty_simple_namespacez)QueryTestCase.test_empty_simple_namespaces.

"
"
$NN2&	M2r
ctjdd}tj|}|j	|dy)NrIr)rUr\znamespace(a=1, b=2)rr s   rtest_small_simple_namespacez)QueryTestCase.test_small_simple_namespaces3

"
"Q!
,NN2&	$9:r
ctjddddddddd	
	}tj|dd}|j	|d
y)NrrIrrrrrrr	thequickbrownfoxjumpedoverrUlazydog<rznamespace(the=0,
          quick=1,
          brown=2,
          fox=3,
          jumped=4,
          over=5,
          a=6,
          lazy=7,
          dog=8)rr s   rtest_simple_namespacez#QueryTestCase.test_simple_namespacesV

"
"

NN2R:		%		r
cGddtj}|ddddddd	d
d	}tj|d
}|j	|dy)NceZdZy)GQueryTestCase.test_simple_namespace_subclass.<locals>.AdvancedNamespaceNrr	r
rAdvancedNamespacer4sr
r5rrIrrrrrrrr'r0rzAdvancedNamespace(the=0,
                  quick=1,
                  brown=2,
                  fox=3,
                  jumped=4,
                  over=5,
                  a=6,
                  lazy=7,
                  dog=8)r)rr5r!r"s    rtest_simple_namespace_subclassz,QueryTestCase.test_simple_namespace_subclasss\< 5 5<


NN2R0		%		r
ctjdd}tj|}|j	|dy)NMyDataclassr	z
MyDataclass())rQmake_dataclassrrrrdcr"s   rtest_empty_dataclassz"QueryTestCase.test_empty_dataclasss7
:[
'
'
r
:
<NN2&	O4r
cjtdd}tj|}|j|dy)Ntext{z3dataclass1(field1='text', field2=123, field3=False))rErrrr:s   rtest_small_dataclassz"QueryTestCase.test_small_dataclasss-

$NN2&	$YZr
ctdtdd}tj||gdd}|j	|dy)Nzsome fairly long textg _BTr0rrz[   dataclass1(field1='some fairly long text',
               field2=10000000000,
               field3=True),
    dataclass1(field1='some fairly long text',
               field2=10000000000,
               field3=True)])rErOrrrr:s   rtest_larger_dataclassz#QueryTestCase.test_larger_dataclasss@
/TD
ANNB82a@	% 	!r
cjt}tj|d}|j|dy)NrrW)rTrrrr:s   rtest_dataclass_with_reprz&QueryTestCase.test_dataclass_with_reprs*
\NN2R0	$VWr
cjt}tj|d}|j|dy)Nrrz+<test.test_pprint.dataclass3 object at \w+>)rYrrassertRegexr:s   rtest_dataclass_no_reprz$QueryTestCase.test_dataclass_no_reprs*
\NN2R0	$RSr
cztd}||_tj|d}|j	|dy)Nrrz!dataclass4(a=...,
           b=1))r[rUrrrr:s   rtest_recursive_dataclassz&QueryTestCase.test_recursive_dataclasss8

NN2R0	%	r
ctd}td}||_||_t	j
|d}|j
|dy)NrrzLdataclass5(a=dataclass6(c=...,
                        d=1),
           b=1))r`rarUrcrrr)rdc5dc6r"s    rtest_cyclic_dataclassz#QueryTestCase.test_cyclic_dataclass$sINN3b1	%	r
cddd}d}t}|j|j||dg}d}|j|j||dg}d}|j|j||y)	Nz should be presented using repr()z	like.this)znames with spaceszothers.should.not.bez[{'names with spaces': 'should be presented using repr()',
 others.should.not.be: like.this}z
with spacez['with space']z
without.spacez[without.space])DottedPrettyPrinterrr)rrrdotted_printerrexp1rexp2s        rtest_subclassingzQueryTestCase.test_subclassing/s"D%0
2%-.//2C8^//3T:
 //3T:r
c	@|jtjtd|jtjtt	dd|jtjtt	ddd|jtjtt	ddd|jtjt
t	ddd	|jtjtd
|jtjtt	dd|jtjtt	ddd|jtjtt	ddd
|jtjtt	dddy)Nzset()rz	{0, 1, 2}rrDrz{0,
 1,
 2,
 3,
 4,
 5,
 6}z?set2({0,
      1,
      2,
      3,
      4,
      5,
      6})zset3({0, 1, 2, 3, 4, 5, 6})zfrozenset()zfrozenset({0, 1, 2})zbfrozenset({0,
           1,
           2,
           3,
           4,
           5,
           6})zifrozenset2({0,
            1,
            2,
            3,
            4,
            5,
            6})z!frozenset3({0, 1, 2, 3, 4, 5, 6}))
rrrr.rr*r,r7r3r5rs rtest_set_reprszQueryTestCase.test_set_reprsBs{.8E!H
6DE!H
R@C		
U1XbAD
		
U1XbA6	8	
	4mD	%((;</	1	%((;2FI		

58(<BGJ		

58(<BG<	>r
cd}tjjd}|jt	j
||d}tjj
|}|jt	j
||y)NaE{frozenset(): frozenset({frozenset({2}), frozenset({0}), frozenset({1})}),
 frozenset({0}): frozenset({frozenset(),
                            frozenset({0, 2}),
                            frozenset({0, 1})}),
 frozenset({1}): frozenset({frozenset(),
                            frozenset({1, 2}),
                            frozenset({0, 1})}),
 frozenset({2}): frozenset({frozenset(),
                            frozenset({1, 2}),
                            frozenset({0, 2})}),
 frozenset({1, 2}): frozenset({frozenset({2}),
                               frozenset({1}),
                               frozenset({0, 1, 2})}),
 frozenset({0, 2}): frozenset({frozenset({2}),
                               frozenset({0}),
                               frozenset({0, 1, 2})}),
 frozenset({0, 1}): frozenset({frozenset({0}),
                               frozenset({1}),
                               frozenset({0, 1, 2})}),
 frozenset({0, 1, 2}): frozenset({frozenset({1, 2}),
                                  frozenset({0, 2}),
                                  frozenset({0, 1})})}raK5{frozenset({frozenset({0, 2}), frozenset({0})}): frozenset({frozenset({frozenset({0,
                                                                                  2}),
                                                                       frozenset({0,
                                                                                  1,
                                                                                  2})}),
                                                            frozenset({frozenset({0}),
                                                                       frozenset({0,
                                                                                  1})}),
                                                            frozenset({frozenset(),
                                                                       frozenset({0})}),
                                                            frozenset({frozenset({2}),
                                                                       frozenset({0,
                                                                                  2})})}),
 frozenset({frozenset({0, 1}), frozenset({1})}): frozenset({frozenset({frozenset({0,
                                                                                  1}),
                                                                       frozenset({0,
                                                                                  1,
                                                                                  2})}),
                                                            frozenset({frozenset({0}),
                                                                       frozenset({0,
                                                                                  1})}),
                                                            frozenset({frozenset({1}),
                                                                       frozenset({1,
                                                                                  2})}),
                                                            frozenset({frozenset(),
                                                                       frozenset({1})})}),
 frozenset({frozenset({1, 2}), frozenset({1})}): frozenset({frozenset({frozenset({1,
                                                                                  2}),
                                                                       frozenset({0,
                                                                                  1,
                                                                                  2})}),
                                                            frozenset({frozenset({2}),
                                                                       frozenset({1,
                                                                                  2})}),
                                                            frozenset({frozenset(),
                                                                       frozenset({1})}),
                                                            frozenset({frozenset({1}),
                                                                       frozenset({0,
                                                                                  1})})}),
 frozenset({frozenset({1, 2}), frozenset({2})}): frozenset({frozenset({frozenset({1,
                                                                                  2}),
                                                                       frozenset({0,
                                                                                  1,
                                                                                  2})}),
                                                            frozenset({frozenset({1}),
                                                                       frozenset({1,
                                                                                  2})}),
                                                            frozenset({frozenset({2}),
                                                                       frozenset({0,
                                                                                  2})}),
                                                            frozenset({frozenset(),
                                                                       frozenset({2})})}),
 frozenset({frozenset(), frozenset({0})}): frozenset({frozenset({frozenset({0}),
                                                                 frozenset({0,
                                                                            1})}),
                                                      frozenset({frozenset({0}),
                                                                 frozenset({0,
                                                                            2})}),
                                                      frozenset({frozenset(),
                                                                 frozenset({1})}),
                                                      frozenset({frozenset(),
                                                                 frozenset({2})})}),
 frozenset({frozenset(), frozenset({1})}): frozenset({frozenset({frozenset(),
                                                                 frozenset({0})}),
                                                      frozenset({frozenset({1}),
                                                                 frozenset({1,
                                                                            2})}),
                                                      frozenset({frozenset(),
                                                                 frozenset({2})}),
                                                      frozenset({frozenset({1}),
                                                                 frozenset({0,
                                                                            1})})}),
 frozenset({frozenset({2}), frozenset()}): frozenset({frozenset({frozenset({2}),
                                                                 frozenset({1,
                                                                            2})}),
                                                      frozenset({frozenset(),
                                                                 frozenset({0})}),
                                                      frozenset({frozenset(),
                                                                 frozenset({1})}),
                                                      frozenset({frozenset({2}),
                                                                 frozenset({0,
                                                                            2})})}),
 frozenset({frozenset({0, 1, 2}), frozenset({0, 1})}): frozenset({frozenset({frozenset({1,
                                                                                        2}),
                                                                             frozenset({0,
                                                                                        1,
                                                                                        2})}),
                                                                  frozenset({frozenset({0,
                                                                                        2}),
                                                                             frozenset({0,
                                                                                        1,
                                                                                        2})}),
                                                                  frozenset({frozenset({0}),
                                                                             frozenset({0,
                                                                                        1})}),
                                                                  frozenset({frozenset({1}),
                                                                             frozenset({0,
                                                                                        1})})}),
 frozenset({frozenset({0}), frozenset({0, 1})}): frozenset({frozenset({frozenset(),
                                                                       frozenset({0})}),
                                                            frozenset({frozenset({0,
                                                                                  1}),
                                                                       frozenset({0,
                                                                                  1,
                                                                                  2})}),
                                                            frozenset({frozenset({0}),
                                                                       frozenset({0,
                                                                                  2})}),
                                                            frozenset({frozenset({1}),
                                                                       frozenset({0,
                                                                                  1})})}),
 frozenset({frozenset({2}), frozenset({0, 2})}): frozenset({frozenset({frozenset({0,
                                                                                  2}),
                                                                       frozenset({0,
                                                                                  1,
                                                                                  2})}),
                                                            frozenset({frozenset({2}),
                                                                       frozenset({1,
                                                                                  2})}),
                                                            frozenset({frozenset({0}),
                                                                       frozenset({0,
                                                                                  2})}),
                                                            frozenset({frozenset(),
                                                                       frozenset({2})})}),
 frozenset({frozenset({0, 1, 2}), frozenset({0, 2})}): frozenset({frozenset({frozenset({1,
                                                                                        2}),
                                                                             frozenset({0,
                                                                                        1,
                                                                                        2})}),
                                                                  frozenset({frozenset({0,
                                                                                        1}),
                                                                             frozenset({0,
                                                                                        1,
                                                                                        2})}),
                                                                  frozenset({frozenset({0}),
                                                                             frozenset({0,
                                                                                        2})}),
                                                                  frozenset({frozenset({2}),
                                                                             frozenset({0,
                                                                                        2})})}),
 frozenset({frozenset({1, 2}), frozenset({0, 1, 2})}): frozenset({frozenset({frozenset({0,
                                                                                        2}),
                                                                             frozenset({0,
                                                                                        1,
                                                                                        2})}),
                                                                  frozenset({frozenset({0,
                                                                                        1}),
                                                                             frozenset({0,
                                                                                        1,
                                                                                        2})}),
                                                                  frozenset({frozenset({2}),
                                                                             frozenset({1,
                                                                                        2})}),
                                                                  frozenset({frozenset({1}),
                                                                             frozenset({1,
                                                                                        2})})})})testtest_setcuberrr	linegraph)r
cube_repr_tgtrZ
cubo_repr_tgtcubos     rtest_set_of_sets_reprsz$QueryTestCase.test_set_of_sets_reprsnsq4:
.}}!!!$-}=\d
|}}&&t,-}=r
cJd}dddddddiiiiii}ddddddggggggg}|jtj|t||jtj|t||jtj|t|d}d	}d
}|jtj|d||jtj|d||jtj|d|y)N)rI)r)r)r)rrrIrrrrrz
(1, (...))z
{1: {...}}z
[1, [...]]r)rrrrK)rnested_tuplenested_dictnested_list	lv1_tuplelv1_dictlv1_lists       r
test_depthzQueryTestCase.test_depthBs11q1q1a&k"23451q1q1b'l"34565tL7IJ4d;6GH4d;6GH 	A>	J1=xH1=xHr
c
d}t|Dcgc]}t}}tj|t	|t
}d}|j
|tjt|ddjtt|zdz|j
|tjt|ddjtt|zdz|j
|tjtj|ddjd	|Dzdz|j
tjtd
dd
idttzd
zddg}|j
tjtj|d
dt!t	|t
zycc}w)NrD)keycF|jddjddS)Nrrr)r)ss r<lambda>z<QueryTestCase.test_sort_unorderable_values.<locals>.<lambda>Ws!))C,44T"=r
{,}zfrozenset({z})c3&K|]	}d|zyw)z%r:NoneNr	).0ks  r	<genexpr>z=QueryTestCase.test_sort_unorderable_values.<locals>.<genexpr>^s8Q9q=8srrIz{1: 0, z: 0})rIrz{%r: 0, %r: 0})rrfrandomshufflesortedrhrrrr.rrrKr7r@rr%)rnikeysskeyscleans      rtest_sort_unorderable_valuesz*QueryTestCase.test_sort_unorderable_valuesQs',Qx0!
00tt$=v~~c$i89#((3tU+,,s2	4v~~io>?CHHSu%566=	?v~~dmmD.ABC#((8%8883>	@	
aA(>?"T+%66>	@g

dA(>?)E&22F,GG	I%1sG-c<t}tt|}|j|||jt	t|t	t||j
t||g||g|j
t||g||g|j
tjt||gdd|d|d|j
tjt||gdd|d|d|j
tjtj||gdd|d|d|j
tjtj||gdd|d|dy)NrIrrmrroz	: None,
 z: None})
rfrjrn
assertLessrMrrrvrrr.r@r)rrUr\s   r*test_sort_orderable_and_unorderable_valuesz8QueryTestCase.test_sort_orderable_and_unorderable_valuesis3Md1g1DGc$q'l3A!Q0A!Q0QF1=)*A.	0QF1=)*A.	0	


q!f(=QG56:	<

q!f(=QG56:	<r
cfd}|jtj|dd|jtjd|dddd	d
}|jtj|dt||jtj|dd
|jtj|dd|jtj|gggggdd|jtj|gggggdd|jtj|gggggddd}|jtj|dt||jtjdd|dz}t	ddD]n}tj||}|jt||tj|gdz|}|jt||gdzpy)Nrr6('the quick brown '
 'fox jumped over '
 'a lazy dog')rIrrrzW{'a': 1,
 'b': 'the quick brown '
      'fox jumped over '
      'a lazy dog',
 'c': 2}u@Portons dix bons "whiskys"
à l'avocat goujat	 qui fumait au zooDuN('Portons dix bons "whiskys"\n'
 "à l'avocat goujat\t qui "
 'fumait au zoo')rDuV('Portons dix bons '
 '"whiskys"\n'
 "à l'avocat "
 'goujat\t qui '
 'fumait au zoo')#u^[[[[['Portons dix bons "whiskys"\n'
     "à l'avocat goujat\t qui "
     'fumait au zoo']]]]]un[[[[['Portons dix bons '
     '"whiskys"\n'
     "à l'avocat "
     'goujat\t qui '
     'fumait au zoo']]]]]uv[[[[['Portons dix '
     'bons "whiskys"\n'
     "à l'avocat "
     'goujat\t qui '
     'fumait au '
     'zoo']]]]]dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxPr''rrr)rrrrKrr)rr+specialunwrappablerr"s      r
test_str_wrapzQueryTestCase.test_str_wrap}s:269		
ac(B.024	
Yr:DMJr:=		
r:=		
WI;-(9DG		
WI;-(9DG		
WI;-(9DG	 2>[@QR+T22
1b\	=Ewe<IT)_g6y1}EBIT)_wi!m<		=r
c	 tdDcgc]}tt||zc}tdDcgc]}tt|c}z}d}|jtj|dd|ycc}wcc}w)Nrrz[[], [0], [0, 1, 2, 3],
 [0, 1, 2, 3, 4, 5, 6, 7, 8],
 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
  14, 15],
 [], [0], [0, 1], [0, 1, 2], [0, 1, 2, 3],
 [0, 1, 2, 3, 4]]/Trr)rrrrr)rrxrrs    rtest_compactzQueryTestCase.test_compactsp*/(
3Qd5Q< 
3&+Ah
/d58n
/0	
TBHM4
/s
BBcPd}d}dg|z}t|dz
D]}|g}t|dzdz|d|zzdz
D]h}tj||dj}t	tt|}|j|||j||dz
jy)	NrDrrrIrrTr)	rrr
splitlinesmaxrrassertLessEqual
assertGreater)rlevelsnumberrrxwlinesmaxwidths        rtest_compact_widthz QueryTestCase.test_compact_widths
C&Lvz"	AA	vzA~vF
':Q'>?	0ANN1At<GGIE3sE?+H  1-xQ/		0r
c|jtjddd|jtjdddd}|jtj|dt||jtj|d	d
|jtj|dd|jtj|d
dt	td
}|jtj|dt||jtj|dd|jtj|dd|jtj|dd|jtjd|dddd|jtjd|dddd|jtj|ggggggdd|jtj|ggggggddtddD]n}tj||}|jt
||tj|gdz|}|jt
||gdzpy)Nr
rIrzb''sabcdzb'abcd'abcdefghijklmnopqrstuvwxyzrz$(b'abcdefghijkl'
 b'mnopqrstuvwxyz')z)(b'abcdefghijkl'
 b'mnopqrstuvwx'
 b'yz')r=0zD(b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b'
 b'\x0c\r\x0e\x0f') zI(b'\x00\x01\x02\x03'
 b'\x04\x05\x06\x07\x08\t\n\x0b'
 b'\x0c\r\x0e\x0f')zN(b'\x00\x01\x02\x03'
 b'\x04\x05\x06\x07'
 b'\x08\t\n\x0b'
 b'\x0c\r\x0e\x0f')rrzJ{'a': 1,
 'b': b'abcdefghijkl'
      b'mnopqrstuvwx'
      b'yz',
 'c': 2}rDzJ{'a': 1,
 'b': b'abcdefgh'
      b'ijklmnop'
      b'qrstuvwxyz',
 'c': 2}rz3[[[[[[b'abcdefghijklmnop'
      b'qrstuvwxyz']]]]]]rzS[[[[[[b'\x00\x01\x02\x03\x04\x05\x06\x07'
      b'\x08\t\n\x0b\x0c\r\x0e\x0f']]]]]]@)rrrrKbytesrr)rlettersrrr"s     rtest_bytes_wrapzQueryTestCase.test_bytes_wrapsx15u=q99E/r:DMJr:=		
r:=		
r:=	b	"r:DMJr:=		
r:=		
q9<	
	
agA(F.024	
	
agA(F.024	
	
gYK=/):(;2FI		
gYK=/):(;2FI5	61b\	=Ewe<IT)_g6y1}EBIT)_wi!m<		=r
c:|jtjtddtd}|jtj|dt	||jtj|dd|jtj|dd	|jtj|d
d	ttd}|jtj|dt	||jtj|d
d|jtj|dd|jtj|dd|jtjd|dddd|jtj|gggggdd|jtj|gggggddy)NrIrzbytearray(b'')rrz6bytearray(b'abcdefghijkl'
          b'mnopqrstuvwxyz')zDbytearray(b'abcdefghijkl'
          b'mnopqrstuvwx'
          b'yz')rrH9zVbytearray(b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b'
          b'\x0c\r\x0e\x0f')rzdbytearray(b'\x00\x01\x02\x03'
          b'\x04\x05\x06\x07\x08\t\n\x0b'
          b'\x0c\r\x0e\x0f')zrbytearray(b'\x00\x01\x02\x03'
          b'\x04\x05\x06\x07'
          b'\x08\t\n\x0b'
          b'\x0c\r\x0e\x0f')rrrzi{'a': 1,
 'b': bytearray(b'abcdefghijkl'
                b'mnopqrstuvwx'
                b'yz'),
 'c': 2}%zE[[[[[bytearray(b'abcdefghijklmnop'
               b'qrstuvwxyz')]]]]]2ze[[[[[bytearray(b'\x00\x01\x02\x03\x04\x05\x06\x07'
               b'\x08\t\n\x0b\x0c\r\x0e\x0f')]]]]])rrrrrKr)rrrs   rtest_bytearray_wrapz!QueryTestCase.test_bytearray_wrap
s	1=?OP9:r:DMJr:= 	!	
r:=		
r:=	E"I&r:DMJr:=$	%	
r:=$	%	
q9<$	%
	
agA(F.024	
	
WI;-(9DG&	'	
WI;-(9DG>	?r
cZtjt}|jt	j
|dddj
}tjtt|tj}|jt	j
|dy)NrIrzdefaultdict(<class 'int'>, {})rzdefaultdict(<class 'int'>,
            {'a': 6,
             'brown': 2,
             'dog': 8,
             'fox': 3,
             'jumped': 4,
             'lazy': 7,
             'over': 5,
             'quick': 1,
             'the': 0}))
rdefaultdictrOrrrrrrrrs   rtest_default_dictzQueryTestCase.test_default_dict5sz##C(35UV<BBD##CUIOO4E)FG*
	r
ctj}|jtj|ddtjd}|jtj|ddy)NrIrz	Counter()
senselessnessrzDCounter({'s': 6,
         'e': 4,
         'n': 2,
         'l': 1}))rCounterrrrrs  rtest_counterzQueryTestCase.test_counterGs[!3[A04	r
ctj}|jtj|dddj}t
t|tj}tjt|}|jtj|dtjt|tj|}|jtj|dy)NrIrzChainMap({})rzChainMap({'a': 6,
          'brown': 2,
          'dog': 8,
          'fox': 3,
          'jumped': 4,
          'lazy': 7,
          'over': 5,
          'quick': 1,
          'the': 0})aChainMap({'a': 6,
          'brown': 2,
          'dog': 8,
          'fox': 3,
          'jumped': 4,
          'lazy': 7,
          'over': 5,
          'quick': 1,
          'the': 0},
         OrderedDict([('the', 0),
                      ('quick', 1),
                      ('brown', 2),
                      ('fox', 3),
                      ('jumped', 4),
                      ('over', 5),
                      ('a', 6),
                      ('lazy', 7),
                      ('dog', 8)])))rChainMaprrrrrrrrr@r)rrdritemss    r
test_chainmapzQueryTestCase.test_chainmapRs  "3^D<BBDS	 123  e-*	
	
  ek.E.Ee.LM*'	(r
cptj}|jtj|ddtjd}|jtj|dddj}tjt
|tj}|jtj|dtjt
|tjd}|jtj|d	y)
NrIrz	deque([])r)maxlenzdeque([], maxlen=7)rzdeque([('the', 0),
       ('quick', 1),
       ('brown', 2),
       ('fox', 3),
       ('jumped', 4),
       ('over', 5),
       ('a', 6),
       ('lazy', 7),
       ('dog', 8)])zdeque([('brown', 2),
       ('fox', 3),
       ('jumped', 4),
       ('over', 5),
       ('a', 6),
       ('lazy', 7),
       ('dog', 8)],
      maxlen=7))	rdequerrrrrrrrs   r
test_dequezQueryTestCase.test_dequeys3[AQ'35JK<BBDc%):;<*	
	
c%):;AF*		r
cFtj}|jtj|dddj}tjt
|tj}|jtj|dy)NrIrz{}rzi{'a': 6,
 'brown': 2,
 'dog': 8,
 'fox': 3,
 'jumped': 4,
 'lazy': 7,
 'over': 5,
 'quick': 1,
 'the': 0})	rUserDictrrrrrrrrs   rtest_user_dictzQueryTestCase.test_user_dictsu  "3T:<BBD  UIOO,=!>?*	
	r
cFtj}|jtj|dddj}tjt
|tj}|jtj|dy)NrIrz[]rz{[('the', 0),
 ('quick', 1),
 ('brown', 2),
 ('fox', 3),
 ('jumped', 4),
 ('over', 5),
 ('a', 6),
 ('lazy', 7),
 ('dog', 8)])	rUserListrrrrrrrrs   rtest_user_listzQueryTestCase.test_user_listsu  "3T:<BBD  UIOO,=!>?*	
	r
cFtjd}|jtj|ddtjd}|jtj|dd|jtjd|iddy)	NrrIrrrrDrzF{1: 'the quick '
    'brown fox '
    'jumped over a '
    'lazy dog'})r
UserStringrrrrs  rtest_user_stringzQueryTestCase.test_user_strings""2&3T:""#OP4	
	
Ab9	r
N)5rrrrrrrrrrrrrrrr	r
rrr#r%r1r6r<r@rBrErHrJrNrTrVunittestexpectedFailurerXsupportcpython_onlyr_rgr|rrrrrrrrrrrrrr	r
rrr~s$
ED"1DB
O!>F>4"EH
J$L
J4$V&,63
;
025
[
	!X
T
	;&*>X	\\O>O>b
II0<(:=x
N
07=r)?V$	%(N<""r
rceZdZdZy)rPct|trd|vrt|ddfS|ddfStjj|||||S)NrrIr)
isinstancerMrKrrformat)rrcontext	maxlevelslevels     rrzDottedPrettyPrinter.formatsTfc"f}F|Q))q!|#''..fgy%9
9r
N)rrrrr	r
rrPrPs9r
rP__main__)/rrrQrrrrttest.supportrX
test.test_setrrrrrrr%r!r#r'r.r*r,r0r7r3r5r9r@r<r>rB	dataclassrErTrYr[r`rarfrjTestCaserrrPrmainr	r
r<module>rs	

	D	#D#,t,	U	$U$--	3	"3"+c+		((1I1	D	#D#,t,
;;;
BBB
E"#



$IH%%IX"
9&..
9zHMMOr