~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_setup.py

  • Committer: John Arbash Meinel
  • Date: 2013-06-24 12:03:12 UTC
  • mfrom: (6437.77.2 2.5)
  • mto: This revision was merged to the branch mainline in revision 6579.
  • Revision ID: john@arbash-meinel.com-20130624120312-pmvck24x052csigx
Merge lp:bzr/2.5 r6515 to get the fix for bug #855155 (Dirstate.update_basis_by_delta)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Test for setup.py build process"""
18
18
 
19
 
from distutils import version
20
19
import os
21
20
import sys
22
21
import subprocess
80
79
        self.log('stderr: %r', stderr)
81
80
        self.assertEqual(0, p.returncode,
82
81
                         'invocation of %r failed' % args)
83
 
 
84
 
 
85
 
class TestDistutilsVersion(tests.TestCase):
86
 
 
87
 
    def test_version_with_string(self):
88
 
        # We really care about two pyrex specific versions and our ability to
89
 
        # detect them
90
 
        lv = version.LooseVersion
91
 
        self.assertTrue(lv("0.9.4.1") < lv('0.17.beta1'))
92
 
        self.assertTrue(lv("0.9.6.3") < lv('0.10'))