From 76ec1f6f0f9a2f3c34b59892aadd532e9abcf18e Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 27 Jun 2009 17:17:28 -0400 Subject: PYTHONPATH might not exist (for example on OS/X) --- test/coveragetest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/coveragetest.py b/test/coveragetest.py index 0fb8d16..dad9697 100644 --- a/test/coveragetest.py +++ b/test/coveragetest.py @@ -209,7 +209,7 @@ class CoverageTest(unittest.TestCase): here = os.path.dirname(self.nice_file(coverage.__file__, "..")) testmods = self.nice_file(here, 'test/modules') zipfile = self.nice_file(here, 'test/zipmods.zip') - pypath = os.environ['PYTHONPATH'] + pypath = os.environ.get('PYTHONPATH', '') if pypath: pypath += os.pathsep pypath += testmods + os.pathsep + zipfile -- cgit v1.2.1