def tearDown(self): super(REPLWrapTestCase, self).tearDown() os.putenv('PS1', self.save_ps1) os.putenv('PS2', self.save_ps2)