def tearDown(self): import psyplot.project as psy self.window.close() del self.window psy.close('all') rcParams.update_from_defaultParams() psy_rcParams.update_from_defaultParams() rcParams.disconnect() psy_rcParams.disconnect()
def tearDownClass(cls): if not running_in_gui: import psyplot_gui.main as main cls.window.close() rcParams.update_from_defaultParams() psy_rcParams.update_from_defaultParams() rcParams.disconnect() psy_rcParams.disconnect() main._set_mainwindow(None) del cls.window, cls.straditizer_widgets
def tearDown(self): import psyplot.project as psy import matplotlib.pyplot as plt if not running_in_gui: import psyplot_gui.main as main self.window.close() rcParams.update_from_defaultParams() psy_rcParams.update_from_defaultParams() rcParams.disconnect() psy_rcParams.disconnect() main._set_mainwindow(None) del self.window psy.close('all') plt.close('all')