Rev 3837: For the simple-log tests, avoid using '\r' in the test. in http://bzr.arbash-meinel.com/branches/bzr/1.10-dev/revision_strictness
John Arbash Meinel
john at arbash-meinel.com
Tue Nov 25 19:56:20 GMT 2008
At http://bzr.arbash-meinel.com/branches/bzr/1.10-dev/revision_strictness
------------------------------------------------------------
revno: 3837
revision-id: john at arbash-meinel.com-20081125195600-lwovdm2idircn2o5
parent: john at arbash-meinel.com-20081125185148-jsfkqnzfjjqsleds
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: revision_strictness
timestamp: Tue 2008-11-25 13:56:00 -0600
message:
For the simple-log tests, avoid using '\r' in the test.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_log.py'
--- a/bzrlib/tests/test_log.py 2008-09-22 20:09:07 +0000
+++ b/bzrlib/tests/test_log.py 2008-11-25 19:56:00 +0000
@@ -146,7 +146,7 @@
self.log('log entries:')
for logentry in lf.logs:
self.log('%4s %s' % (logentry.revno, logentry.rev.message))
-
+
# first one is most recent
logentry = lf.logs[0]
eq(logentry.revno, '2')
@@ -154,9 +154,10 @@
d = logentry.delta
self.log('log 2 delta: %r' % d)
self.checkDelta(d, added=['hello'])
-
+
# commit a log message with control characters
- msg = "All 8-bit chars: " + ''.join([unichr(x) for x in range(256)])
+ msg = u"All 8-bit chars: " + ''.join([unichr(x) for x in range(256)])
+ msg = msg.replace(u'\r', u'\n')
self.log("original commit message: %r", msg)
wt.commit(msg)
lf = LogCatcher()
More information about the bazaar-commits
mailing list