~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-11 16:35:34 UTC
  • mfrom: (5848.2.2 2.4-uses-py26)
  • Revision ID: pqm@pqm.ubuntu.com-20110511163534-yz28ddqwa5cicukr
(jameinel) Finally break compatibility with python 2.4/5. bzr-2.4.0 will be
 officially only compatible with python2.6/7 (John A Meinel)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1897
1897
        os.symlink(self.target, self.link)
1898
1898
 
1899
1899
    def test_os_readlink_link_encoding(self):
1900
 
        if sys.version_info < (2, 6):
1901
 
            self.assertRaises(UnicodeEncodeError, os.readlink, self.link)
1902
 
        else:
1903
 
            self.assertEquals(self.target,  os.readlink(self.link))
 
1900
        self.assertEquals(self.target,  os.readlink(self.link))
1904
1901
 
1905
1902
    def test_os_readlink_link_decoding(self):
1906
1903
        self.assertEquals(self.target.encode(osutils._fs_enc),