Skip to content
This repository was archived by the owner on Apr 15, 2024. It is now read-only.

Commit e6bd8cb

Browse files
committed
Use set() instead of {} literals
1 parent 941c422 commit e6bd8cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_std.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,10 @@ def test_agent_checks_service_id(self, consul_port):
291291
index, nodes = c.health.service('foo1')
292292
assert set([
293293
check['ServiceID'] for node in nodes
294-
for check in node['Checks']]) == {'foo1', ''}
294+
for check in node['Checks']]) == set(['foo1', ''])
295295
assert set([
296296
check['CheckID'] for node in nodes
297-
for check in node['Checks']]) == {'foo', 'serfHealth'}
297+
for check in node['Checks']]) == set(['foo', 'serfHealth'])
298298

299299
# Clean up tasks
300300
assert c.agent.check.deregister('foo') is True

0 commit comments

Comments
 (0)