~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzr

  • Committer: Robert Collins
  • Date: 2005-08-23 06:52:09 UTC
  • mto: (974.1.50) (1185.1.10) (1092.3.1)
  • mto: This revision was merged to the branch mainline in revision 1139.
  • Revision ID: robertc@robertcollins.net-20050823065209-81cd5962c401751b
move io redirection into each test case from the global runner

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
 
27
27
REINVOKE = "__BZR_REINVOKE"    
28
 
NEED_VERS = (2, 3)
 
28
NEED_VERS = (2, 4)
 
29
KNOWN_PYTHONS = ('python2.4',)
29
30
 
30
31
if version_info < NEED_VERS:
31
32
    if not os.environ.has_key(REINVOKE):
32
33
        # mutating os.environ doesn't work in old Pythons
33
34
        os.putenv(REINVOKE, "1")
34
 
        for python in 'python2.4', 'python2.3':
 
35
        for python in KNOWN_PYTHONS:
35
36
            try:
36
37
                os.execvp(python, [python] + sys.argv)
37
38
            except OSError: