comparison tests/run.py @ 697:e9306b23d323

testrunner: don't use os.putenv(), as it may not affect os.environ.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Tue, 14 Sep 2010 15:25:45 +0200
parents 073132fc27f1
children 69c0e7c4faf9
comparison
equal deleted inserted replaced
696:c11bf0dd38d3 697:e9306b23d323
76 if options.demandimport: 76 if options.demandimport:
77 from mercurial import demandimport 77 from mercurial import demandimport
78 demandimport.enable() 78 demandimport.enable()
79 79
80 if options.bindings: 80 if options.bindings:
81 os.putenv('HGSUBVERSION_BINDINGS', options.bindings) 81 os.environ['HGSUBVERSION_BINDINGS'] = options.bindings
82 82
83 # make sure our copy of hgsubversion gets imported by loading test_util 83 # make sure our copy of hgsubversion gets imported by loading test_util
84 import test_util 84 import test_util
85 test_util.TestBase 85 test_util.TestBase
86 86