Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_extend_path(self, additional_paths):
env = os.environ.copy()
_extend_python_path(env, additional_paths)
assert env["PYTHONPATH"] == os.pathsep.join(additional_paths)