##// END OF EJS Templates
py3: make tests/test-impexp-branch.t compatible with Python 3...
Pulkit Goyal -
r38386:e033fd78 default
parent child Browse files
Show More
@@ -75,8 +75,8 b' Test --exact and patch header separators'
75 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
75 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
76 >>> import re
76 >>> import re
77 >>> p = open('../r1.patch', 'rb').read()
77 >>> p = open('../r1.patch', 'rb').read()
78 >>> p = re.sub(r'Parent\s+', 'Parent ', p)
78 >>> p = re.sub(br'Parent\s+', b'Parent ', p)
79 >>> open('../r1-ws.patch', 'wb').write(p)
79 >>> open('../r1-ws.patch', 'wb').write(p) and None
80 $ hg import --exact ../r1-ws.patch
80 $ hg import --exact ../r1-ws.patch
81 applying ../r1-ws.patch
81 applying ../r1-ws.patch
82
82
General Comments 0
You need to be logged in to leave comments. Login now