This is an automated email from the ASF dual-hosted git repository.

baunsgaard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/systemds.git


The following commit(s) were added to refs/heads/main by this push:
     new 094642e  [MINOR] Make python matrix print more robust
094642e is described below

commit 094642ec66669ee9fbb0229c723a9a8faf722669
Author: baunsgaard <baunsga...@tugraz.at>
AuthorDate: Mon Dec 13 21:05:16 2021 +0100

    [MINOR] Make python matrix print more robust
    
    recently the python print of matrix fails sometime on github,
    this commit fixes it by adding a bit more delay.
---
 src/main/python/tests/matrix/test_print.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/main/python/tests/matrix/test_print.py 
b/src/main/python/tests/matrix/test_print.py
index c7337de..397d200 100644
--- a/src/main/python/tests/matrix/test_print.py
+++ b/src/main/python/tests/matrix/test_print.py
@@ -33,10 +33,11 @@ class TestPrint(unittest.TestCase):
     @classmethod
     def setUpClass(cls):
         cls.sds = SystemDSContext()
-        sleep(1.0)
+        sleep(2.0)
         # Clear stdout ...
         cls.sds.get_stdout()
         cls.sds.get_stdout()
+        sleep(1.0)
 
     @classmethod
     def tearDownClass(cls):
@@ -44,10 +45,12 @@ class TestPrint(unittest.TestCase):
 
     def test_print_01(self):
         self.sds.from_numpy(np.array([1])).to_string().print().compute()
+        sleep(0.2)
         self.assertEqual(1,float(self.sds.get_stdout()[0]))
 
     def test_print_02(self):
         self.sds.scalar(1).print().compute()
+        sleep(0.2)
         self.assertEqual(1,float(self.sds.get_stdout()[0]))
 
 if __name__ == "__main__":

Reply via email to