~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Vincent Ladeuil
  • Date: 2009-12-04 10:09:11 UTC
  • mto: (4862.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4863.
  • Revision ID: v.ladeuil+lp@free.fr-20091204100911-8pyp5gysqrp2deh5
Fixed as per poolie's review.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1936
1936
        os.environ['BZR_COLUMNS'] = '12'
1937
1937
        self.assertEquals(12, osutils.terminal_width())
1938
1938
 
1939
 
    def test_falls_back_to_COLUMNS(self):
1940
 
        del os.environ['BZR_COLUMNS']
1941
 
        os.environ['COLUMNS'] = '42'
1942
 
        self.assertEquals(42, osutils.terminal_width())
1943
 
 
1944
1939
    def test_tty_default_without_columns(self):
1945
1940
        del os.environ['BZR_COLUMNS']
1946
1941
        del os.environ['COLUMNS']