def setup_environment():
 global oldstuff, platformstuff
 oldstuff = (env.copy(), os.name, sys.platform, path.get_home_dir, IPython.__file__, os.getcwd())

def setup_environment ( ) : global oldstuff , platformstuff oldstuff = ( env . copy ( ) , os . name , sys . platform , path . get_home_dir , IPython . __file__ , os . getcwd ( ) )
setup testenvironment for some functions that are tested in this module .