~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: John Arbash Meinel
  • Date: 2011-05-11 11:35:28 UTC
  • mto: This revision was merged to the branch mainline in revision 5851.
  • Revision ID: john@arbash-meinel.com-20110511113528-qepibuwxicjrbb2h
Break compatibility with python <2.6.

This includes auditing the code for places where we were doing
explicit 'sys.version' checks and removing them as appropriate.

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),