~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

(vila) Fix test failures blocking package builds. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2011 Canonical Ltd
 
1
# Copyright (C) 2005-2015 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
925
925
    """Test that _win32 versions of os utilities return appropriate paths."""
926
926
 
927
927
    def test_abspath(self):
 
928
        self.requireFeature(features.win32_feature)
928
929
        self.assertEqual('C:/foo', osutils._win32_abspath('C:\\foo'))
929
930
        self.assertEqual('C:/foo', osutils._win32_abspath('C:/foo'))
930
931
        self.assertEqual('//HOST/path', osutils._win32_abspath(r'\\HOST\path'))
977
978
        self.assertEqual('C:\\foo', osutils._win32_fixdrive('c:\\foo'))
978
979
 
979
980
    def test_win98_abspath(self):
 
981
        self.requireFeature(features.win32_feature)
980
982
        # absolute path
981
983
        self.assertEqual('C:/foo', osutils._win98_abspath('C:\\foo'))
982
984
        self.assertEqual('C:/foo', osutils._win98_abspath('C:/foo'))