Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(287)

Issue 7469: pass sys.path to subprocess PYTHONPATH (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
17 years, 4 months ago by Tom
Modified:
16 years, 7 months ago
Reviewers:
Joe Hughes
CC:
googletransitdatafeed_googlegroups.com
Base URL:
http://googletransitdatafeed.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Setting PYTHONPATH of the process running the unittest code should also affect tests that run in a subprocess. The downside of this change is that the subprocess tests no longer check that everything will work by default once you've installed transitfeed. Hopefully if your tests are using a customized sys.path you know what you are doing.

Patch Set 1 #

Patch Set 2 : add comment per review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M python/test/util.py View 1 1 chunk +9 lines, -1 line 0 comments Download

Messages

Total messages: 2
Tom
17 years, 4 months ago (2008-10-14 00:59:55 UTC) #1
Joe Hughes
17 years, 4 months ago (2008-10-14 01:03:42 UTC) #2
Looks good, thanks.

http://codereview.appspot.com/7469/diff/1/2
File python/test/util.py (right):

http://codereview.appspot.com/7469/diff/1/2#newcode95
Line 95: env = {"PYTHONPATH": ":".join(sys.path)}
Could you add a comment here similar to what you wrote in the change
description?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b