~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commands.py

  • Committer: Gordon Tyler
  • Date: 2009-12-24 02:56:12 UTC
  • mto: (5037.3.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5046.
  • Revision ID: gordon@doxxx.net-20091224025612-qrk0pnzm3ayl2kgk
Changed test_single_quotes to skip on win32 and fixed test_unicode to not fail on win32.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
            commands.get_alias("diff", config=my_config))
95
95
 
96
96
    def test_single_quotes(self):
 
97
        if sys.platform == 'win32':
 
98
            # skipping due to inability to handle single quotes on win32
 
99
            raise TestSkipped()
97
100
        my_config = self._get_config("[ALIASES]\n"
98
101
            "diff=diff -r -2..-1 --diff-options "
99
102
            "'--strip-trailing-cr -wp'\n")
111
114
 
112
115
    def test_unicode(self):
113
116
        my_config = self._get_config("[ALIASES]\n"
114
 
            u"iam=whoami 'Erik B\u00e5gfors <erik@bagfors.nu>'\n")
 
117
            u'iam=whoami "Erik B\u00e5gfors <erik@bagfors.nu>"\n')
115
118
        self.assertEqual([u'whoami', u'Erik B\u00e5gfors <erik@bagfors.nu>'],
116
119
                          commands.get_alias("iam", config=my_config))
117
120