@@ -64,7 +64,9 @@ def test_3d(self):
6464 tempimg = f"{ tempdir } /matshow3d_test.png"
6565 fig .savefig (tempimg )
6666 comp = compare_images (f"{ testing_dir } /matshow3d_test.png" , tempimg , 5e-2 )
67- self .assertIsNone (comp , f"value of comp={ comp } " ) # None indicates test passed
67+ self .assertIsNone (
68+ comp , f"value of comp={ comp } "
69+ ) # None indicates test passed
6870
6971 _ , axes = pyplot .subplots ()
7072 matshow3d (
@@ -113,7 +115,9 @@ def test_samples(self):
113115 print ("not none comp: " , comp ) # matplotlib 3.2.2
114116 np .testing .assert_allclose (comp ["rms" ], 30.786983 , atol = 1e-3 , rtol = 1e-3 )
115117 else :
116- self .assertIsNone (comp , f"value of comp={ comp } " ) # None indicates test passed
118+ self .assertIsNone (
119+ comp , f"value of comp={ comp } "
120+ ) # None indicates test passed
117121
118122 def test_3d_rgb (self ):
119123 test_dir = Path (__file__ ).parents [2 ].as_posix ()
@@ -145,8 +149,12 @@ def test_3d_rgb(self):
145149 with tempfile .TemporaryDirectory () as tempdir :
146150 tempimg = f"{ tempdir } /matshow3d_rgb_test.png"
147151 fig .savefig (tempimg )
148- comp = compare_images (f"{ testing_dir } /matshow3d_rgb_test.png" , tempimg , 5e-2 )
149- self .assertIsNone (comp , f"value of comp={ comp } " ) # None indicates test passed
152+ comp = compare_images (
153+ f"{ testing_dir } /matshow3d_rgb_test.png" , tempimg , 5e-2
154+ )
155+ self .assertIsNone (
156+ comp , f"value of comp={ comp } "
157+ ) # None indicates test passed
150158
151159
152160if __name__ == "__main__" :
0 commit comments