'Restore sys.path'

def tearDown(self):

    sys.path[:] = self.sys_path
    if (self.makefile is not None):
        os.unlink(self.makefile)
    self._cleanup_testfn()
    if (self.uname is not None):
        os.uname = self.uname
    else:
        del os.uname
    os.name = self.name
    sys.platform = self.platform
    sys.version = self.version
    os.sep = self.sep
    os.path.join = self.join
    os.path.isabs = self.isabs
    os.path.splitdrive = self.splitdrive
    sysconfig._CONFIG_VARS = copy(self._config_vars)
    for (key, value) in self.old_environ.items():
        if (os.environ.get(key) != value):
            os.environ[key] = value
    for key in os.environ.keys():
        if (key not in self.old_environ):
            del os.environ[key]
    super(TestSysConfig, self).tearDown()
