Skip to content

Commit a92ef3d

Browse files
committed
Remove set from block style unit test (since order kept changing)
1 parent 31a4d1e commit a92ef3d

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

Lib/test/test_pprint.py

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,6 @@ class DummyDataclass:
11421142
qux: dict = field(default_factory=dict)
11431143
quux: list = field(default_factory=list)
11441144
corge: int = 1
1145-
grault: set = field(default_factory=set)
11461145
garply: tuple = (1, 2, 3, 4)
11471146
waldo: Optional["DummyDataclass"] = None
11481147
dummy_dataclass = DummyDataclass(
@@ -1152,7 +1151,6 @@ class DummyDataclass:
11521151
qux={"foo": "bar", "baz": 123},
11531152
quux=["foo", "bar", "baz"],
11541153
corge=7,
1155-
grault={"foo", "bar", "baz", "baz"},
11561154
garply=(1, 2, 3, 4),
11571155
waldo=None,
11581156
)
@@ -1190,9 +1188,6 @@ class DummyDataclass:
11901188
)
11911189

11921190
dummy_set = {
1193-
"foo",
1194-
"bar",
1195-
"baz",
11961191
(1, 2, 3),
11971192
}
11981193

@@ -1305,7 +1300,6 @@ def __init__(self, *args, **kwargs):
13051300
qux={'foo': 'bar', 'baz': 123},
13061301
quux=['foo', 'bar', 'baz'],
13071302
corge=7,
1308-
grault={'baz', 'foo', 'bar'},
13091303
garply=(1, 2, 3, 4),
13101304
waldo=None
13111305
@@ -1332,14 +1326,9 @@ def __init__(self, *args, **kwargs):
13321326
6,
13331327
['foo', 'bar', 'baz']
13341328
),
1335-
'dummy_set': {'baz', (1, 2, 3), 'foo', 'bar'},
1329+
'dummy_set': {(1, 2, 3)},
13361330
'dummy_frozenset': frozenset({
1337-
frozenset({
1338-
'bar',
1339-
'baz',
1340-
'foo',
1341-
(1, 2, 3)
1342-
}),
1331+
frozenset({(1, 2, 3)}),
13431332
'bar',
13441333
'baz',
13451334
'foo',
@@ -1396,12 +1385,7 @@ def __init__(self, *args, **kwargs):
13961385
{'garply': 'waldo'}
13971386
),
13981387
'dummy_deque': deque([
1399-
{
1400-
'bar',
1401-
'baz',
1402-
'foo',
1403-
(1, 2, 3)
1404-
},
1388+
{(1, 2, 3)},
14051389
'foo',
14061390
123,
14071391
{

0 commit comments

Comments
 (0)