373eb09e4c5d2b3cc2493f0949dc4be6b6a45e81,tensorboard/manager_e2e_test.py,ManagerEndToEndTest,test_exec_failure_with_no_explicit_binary,#ManagerEndToEndTest#,368
Before Change
// Can"t use ENOENT without an absolute path (it"s not treated as
// an exec failure).
self.skipTest("Not clear how to trigger this case on Windows.")
environ = {"PATH": "nope"}
environ_patcher = mock.patch.dict(os.environ, environ)
environ_patcher.start()
self.addCleanup(environ_patcher.stop)
start_result = manager.start(["--logdir=./logs", "--port=0"])
self.assertIsInstance(start_result, manager.StartExecFailed)
self.assertEqual(start_result.os_error.errno, errno.ENOENT)
After Change
// Can"t use ENOENT without an absolute path (it"s not treated as
// an exec failure).
self.skipTest("Not clear how to trigger this case on Windows.")
self._patch_environ({"PATH": "nope"})
start_result = manager.start(["--logdir=./logs", "--port=0"])
self.assertIsInstance(start_result, manager.StartExecFailed)
self.assertEqual(start_result.os_error.errno, errno.ENOENT)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 12
Instances Project Name: tensorflow/tensorboard
Commit Name: 373eb09e4c5d2b3cc2493f0949dc4be6b6a45e81
Time: 2019-06-27
Author: wchargin@gmail.com
File Name: tensorboard/manager_e2e_test.py
Class Name: ManagerEndToEndTest
Method Name: test_exec_failure_with_no_explicit_binary
Project Name: tensorflow/tensorboard
Commit Name: 373eb09e4c5d2b3cc2493f0949dc4be6b6a45e81
Time: 2019-06-27
Author: wchargin@gmail.com
File Name: tensorboard/manager_e2e_test.py
Class Name: ManagerEndToEndTest
Method Name: _stub_tensorboard
Project Name: tensorflow/tensorboard
Commit Name: 373eb09e4c5d2b3cc2493f0949dc4be6b6a45e81
Time: 2019-06-27
Author: wchargin@gmail.com
File Name: tensorboard/manager_e2e_test.py
Class Name: ManagerEndToEndTest
Method Name: test_exec_failure_with_explicit_binary
Project Name: tensorflow/tensorboard
Commit Name: 373eb09e4c5d2b3cc2493f0949dc4be6b6a45e81
Time: 2019-06-27
Author: wchargin@gmail.com
File Name: tensorboard/manager_e2e_test.py
Class Name: ManagerEndToEndTest
Method Name: test_tensorboard_binary_environment_variable