@@ -674,9 +674,6 @@ def test_close(self):
674674 sp2 .close (True , True , True )
675675 self .assertEqual (sp2 , [])
676676 self .assertEqual (mp , [])
677- if not six .PY2 :
678- with self .assertRaises ((RuntimeError , AssertionError )):
679- ds .t2m .values
680677
681678 def test_close_global (self ):
682679 """Test the :func:`psyplot.project.close` function"""
@@ -712,9 +709,7 @@ def test_close_global(self):
712709 # close the current subproject
713710 ds = mp2 [2 ].psy .base
714711 psy .close ()
715- if not six .PY2 :
716- with self .assertRaises ((RuntimeError , AssertionError )):
717- ds .u .values
712+
718713 self .assertIs (psy .gcp (True ), mp2 )
719714 self .assertEqual (psy .gcp (), [])
720715 self .assertEqual (sp2 , [])
@@ -728,9 +723,7 @@ def test_close_global(self):
728723 self .assertEqual (mp2 , [])
729724 self .assertIs (psy .gcp ().main , mp1 )
730725 self .assertEqual (psy .gcp ().arr_names , mp1 .arr_names )
731- if not six .PY2 :
732- with self .assertRaises ((RuntimeError , AssertionError )):
733- ds .u .values
726+
734727 # close all projects
735728 ds0 = mp0 [0 ].psy .base
736729 ds0 .v .values # check that the data can be loaded
@@ -742,10 +735,6 @@ def test_close_global(self):
742735 self .assertEqual (psy .gcp (), [])
743736 self .assertIsNot (psy .gcp (True ), mp0 )
744737 self .assertIsNot (psy .gcp (True ), mp1 )
745- if not six .PY2 :
746- with self .assertRaises ((RuntimeError , AssertionError )):
747- ds0 .u .values
748- ds1 .u .values
749738
750739 def test_oncpchange_signal (self ):
751740 """Test whether the correct signal is fired"""
0 commit comments