1fbc8fb371d252916d4934b964623b3be3059367,tests/python/pants_test/java/test_nailgun_protocol.py,TestNailgunProtocol,test_read_until,#TestNailgunProtocol#,70
Before Change
NailgunProtocol.parse_request(self.server_sock)
def test_read_until(self):
recv_chunks = ["1", "234", "56", "789", "0"]
mock_socket = mock.Mock()
mock_socket.recv.side_effect = recv_chunks
self.assertEqual(NailgunProtocol._read_until(mock_socket, 10), "1234567890")
self.assertEqual(mock_socket.recv.call_count, len(recv_chunks))
After Change
NailgunProtocol.parse_request(self.server_sock)
def test_read_until(self):
recv_chunks = [b"1", b"234", b"56", b"789", b"0"]
mock_socket = mock.Mock()
mock_socket.recv.side_effect = recv_chunks
self.assertEqual(NailgunProtocol._read_until(mock_socket, 10), b"1234567890")
self.assertEqual(mock_socket.recv.call_count, len(recv_chunks))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: pantsbuild/pants
Commit Name: 1fbc8fb371d252916d4934b964623b3be3059367
Time: 2018-08-01
Author: ericarellano@me.com
File Name: tests/python/pants_test/java/test_nailgun_protocol.py
Class Name: TestNailgunProtocol
Method Name: test_read_until
Project Name: lebedov/scikit-cuda
Commit Name: 1e1312844036dd2dce3de7fc3adcc9336593432a
Time: 2017-07-11
Author: abergeron@gmail.com
File Name: skcuda/magma.py
Class Name:
Method Name: magma_init
Project Name: pantsbuild/pants
Commit Name: 1fbc8fb371d252916d4934b964623b3be3059367
Time: 2018-08-01
Author: ericarellano@me.com
File Name: tests/python/pants_test/java/test_nailgun_client.py
Class Name: TestNailgunClientSession
Method Name: TestNailgunClientSession_1