6ef5e815d6913a79a4ba422f231ac8ec5116828e,test/test_spark.py,SparkTests,test_timeout,#SparkTests#,71

Before Change


                              env={"PATH": os.environ.get("PATH")})
            self.fail("Timeout expected")
        except Exception as e:
            print("Caught exception:")
            traceback.print_exc()
            self.assertIn("Timed out waiting for Spark tasks to start", str(e))
        finally:
            spark.stop()

After Change



    def test_timeout(self):
        with spark("test_timeout"):
            with pytest.raises(Exception, match="^Timed out waiting for Spark tasks to start."):
                horovod.spark.run(None, num_proc=4, start_timeout=5,
                                  env={"PATH": os.environ.get("PATH")},
                                  verbose=0)

    def test_mpirun_not_found(self):
        start = time.time()
        with spark("test_mpirun_not_found"):
            with pytest.raises(Exception, match="^mpirun failed with exit code 127$"):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: horovod/horovod
Commit Name: 6ef5e815d6913a79a4ba422f231ac8ec5116828e
Time: 2019-11-06
Author: github@enrico.minack.dev
File Name: test/test_spark.py
Class Name: SparkTests
Method Name: test_timeout


Project Name: bashtage/linearmodels
Commit Name: fa8673e4807004060b2cd5811aefc033bc5343c2
Time: 2017-02-21
Author: kevin.k.sheppard@gmail.com
File Name: panel/iv/tests/test_iv.py
Class Name: TestIV
Method Name: test_ivgmm_smoke


Project Name: horovod/horovod
Commit Name: 6ef5e815d6913a79a4ba422f231ac8ec5116828e
Time: 2019-11-06
Author: github@enrico.minack.dev
File Name: test/test_spark.py
Class Name: SparkTests
Method Name: test_mpirun_not_found