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

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


The following commit(s) were added to refs/heads/master by this push:
     new 47c52f1  [MINOR] Remove debug printing in python tests
47c52f1 is described below

commit 47c52f185bb193a8d20a6a04e00a16e1881378de
Author: baunsgaard <[email protected]>
AuthorDate: Mon Oct 19 14:13:10 2020 +0200

    [MINOR] Remove debug printing in python tests
---
 src/main/python/tests/examples/tutorials/test_mnist.py | 2 +-
 src/main/python/tests/matrix/test_print.py             | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/python/tests/examples/tutorials/test_mnist.py 
b/src/main/python/tests/examples/tutorials/test_mnist.py
index 9843f4d..6505e22 100644
--- a/src/main/python/tests/examples/tutorials/test_mnist.py
+++ b/src/main/python/tests/examples/tutorials/test_mnist.py
@@ -104,7 +104,7 @@ class Test_DMLScript(unittest.TestCase):
         Yt = Matrix(self.sds, self.d.get_test_labels()[:test_count])
         Yt = Yt + 1.0
 
-        [_, _, acc] = multiLogRegPredict(Xt, bias, Yt).compute(verbose=True)
+        [_, _, acc] = multiLogRegPredict(Xt, bias, Yt).compute(verbose=False)
         
         self.assertGreater(acc, 70)
 
diff --git a/src/main/python/tests/matrix/test_print.py 
b/src/main/python/tests/matrix/test_print.py
index ee928df..670ce37 100644
--- a/src/main/python/tests/matrix/test_print.py
+++ b/src/main/python/tests/matrix/test_print.py
@@ -46,11 +46,11 @@ class TestPrint(unittest.TestCase):
 
     def test_print_01(self):
         Matrix(self.sds, np.array([1])).to_string().print().compute()
-        self.assertEquals('1.000',self.sds.get_stdout()[0])
+        self.assertEqual('1.000',self.sds.get_stdout()[0])
 
     def test_print_02(self):
         self.sds.scalar(1).print().compute()
-        self.assertEquals('1', self.sds.get_stdout()[0])
+        self.assertEqual('1', self.sds.get_stdout()[0])
 
 if __name__ == "__main__":
     unittest.main(exit=False)

Reply via email to