d97b49812f489f4fce220281e386278f9578a159,distributed/tests/test_scheduler.py,,test_coerce_address,#,520
Before Change
a = Worker(s.ip, s.port, name="alice")
b = Worker(s.ip, s.port, name=123)
c = Worker("127.0.0.1", s.port, name="charlie")
yield [a._start(), b._start(), c._start()]
assert s.coerce_address("127.0.0.1:8000") == "tcp://127.0.0.1:8000"
assert s.coerce_address("[::1]:8000") == "tcp://[::1]:8000"
assert s.coerce_address("tcp://127.0.0.1:8000") == "tcp://127.0.0.1:8000"
After Change
a = Worker(s.ip, s.port, name="alice")
b = Worker(s.ip, s.port, name=123)
c = Worker("127.0.0.1", s.port, name="charlie")
yield [a, b, c]
assert s.coerce_address("127.0.0.1:8000") == "tcp://127.0.0.1:8000"
assert s.coerce_address("[::1]:8000") == "tcp://[::1]:8000"
assert s.coerce_address("tcp://127.0.0.1:8000") == "tcp://127.0.0.1:8000"
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: dask/distributed
Commit Name: d97b49812f489f4fce220281e386278f9578a159
Time: 2019-04-09
Author: mrocklin@gmail.com
File Name: distributed/tests/test_scheduler.py
Class Name:
Method Name: test_coerce_address
Project Name: dask/distributed
Commit Name: d97b49812f489f4fce220281e386278f9578a159
Time: 2019-04-09
Author: mrocklin@gmail.com
File Name: distributed/tests/test_resources.py
Class Name:
Method Name: test_resources
Project Name: dask/distributed
Commit Name: d97b49812f489f4fce220281e386278f9578a159
Time: 2019-04-09
Author: mrocklin@gmail.com
File Name: distributed/tests/test_nanny.py
Class Name:
Method Name: test_environment_variable