##// END OF EJS Templates
py3: suppress the output from .write() calls in more tests...
Matt Harbison -
r39987:a339b5e0 default
parent child Browse files
Show More
@@ -298,7 +298,7 b' Clean hook cached version'
298 ...
298 ...
299 ... runcommand(server, ['bookmarks', 'bm3'])
299 ... runcommand(server, ['bookmarks', 'bm3'])
300 ... f = open('a', 'ab')
300 ... f = open('a', 'ab')
301 ... f.write('a\n')
301 ... f.write('a\n') and None
302 ... f.close()
302 ... f.close()
303 ... runcommand(server, ['commit', '-Amm'])
303 ... runcommand(server, ['commit', '-Amm'])
304 ... runcommand(server, ['bookmarks'])
304 ... runcommand(server, ['bookmarks'])
@@ -391,7 +391,7 b' Clean hook cached version'
391 ... readchannel(server)
391 ... readchannel(server)
392 ... runcommand(server, ['commit', '-Am.'])
392 ... runcommand(server, ['commit', '-Am.'])
393 ... f = open('ignored-file', 'ab')
393 ... f = open('ignored-file', 'ab')
394 ... f.write('')
394 ... f.write('') and None
395 ... f.close()
395 ... f.close()
396 ... f = open('.hgignore', 'ab')
396 ... f = open('.hgignore', 'ab')
397 ... f.write('ignored-file')
397 ... f.write('ignored-file')
@@ -418,7 +418,7 b' cache of non-public revisions should be '
418 ... for i in range(5, 7):
418 ... for i in range(5, 7):
419 ... f = open('a', 'ab')
419 ... f = open('a', 'ab')
420 ... f.seek(0, os.SEEK_END)
420 ... f.seek(0, os.SEEK_END)
421 ... f.write('a\n')
421 ... f.write('a\n') and None
422 ... f.close()
422 ... f.close()
423 ... os.system('hg commit -Aqm%d' % i)
423 ... os.system('hg commit -Aqm%d' % i)
424 ... # new commits should be listed as draft revisions
424 ... # new commits should be listed as draft revisions
@@ -463,7 +463,7 b' cache of phase roots should be invalidat'
463 ... # create new head, 5:731265503d86
463 ... # create new head, 5:731265503d86
464 ... runcommand(server, ['update', '-C', '0'])
464 ... runcommand(server, ['update', '-C', '0'])
465 ... f = open('a', 'ab')
465 ... f = open('a', 'ab')
466 ... f.write('a\n')
466 ... f.write('a\n') and None
467 ... f.close()
467 ... f.close()
468 ... runcommand(server, ['commit', '-Am.', 'a'])
468 ... runcommand(server, ['commit', '-Am.', 'a'])
469 ... runcommand(server, ['log', '-Gq'])
469 ... runcommand(server, ['log', '-Gq'])
@@ -217,7 +217,7 b' hg status of kw-ignored binary file star'
217 >>> open("i", "wb").write("\1\nfoo") and None
217 >>> open("i", "wb").write("\1\nfoo") and None
218 $ hg -q commit -Am metasep i
218 $ hg -q commit -Am metasep i
219 $ hg status
219 $ hg status
220 >>> open("i", "wb").write("\1\nbar")
220 >>> open("i", "wb").write("\1\nbar") and None
221 $ hg status
221 $ hg status
222 M i
222 M i
223 $ hg -q commit -m "modify metasep" i
223 $ hg -q commit -m "modify metasep" i
@@ -943,7 +943,7 b' Imported patch should not be rejected'
943
943
944 >>> import re
944 >>> import re
945 >>> text = re.sub(r'(Id.*)', r'\1 rejecttest', open('a').read())
945 >>> text = re.sub(r'(Id.*)', r'\1 rejecttest', open('a').read())
946 >>> open('a', 'wb').write(text)
946 >>> open('a', 'wb').write(text) and None
947 $ hg --debug commit -m'rejects?' -d '3 0' -u 'User Name <user@example.com>'
947 $ hg --debug commit -m'rejects?' -d '3 0' -u 'User Name <user@example.com>'
948 committing files:
948 committing files:
949 a
949 a
@@ -243,7 +243,7 b' Archive contains largefiles'
243 >>> import urllib2
243 >>> import urllib2
244 >>> u = 'http://localhost:%s/archive/default.zip' % os.environ['HGPORT2']
244 >>> u = 'http://localhost:%s/archive/default.zip' % os.environ['HGPORT2']
245 >>> with open('archive.zip', 'w') as f:
245 >>> with open('archive.zip', 'w') as f:
246 ... f.write(urllib2.urlopen(u).read())
246 ... f.write(urllib2.urlopen(u).read()) and None
247 $ unzip -t archive.zip
247 $ unzip -t archive.zip
248 Archive: archive.zip
248 Archive: archive.zip
249 testing: empty-default/.hg_archival.txt*OK (glob)
249 testing: empty-default/.hg_archival.txt*OK (glob)
@@ -327,9 +327,9 b' enabled adds the lfs requirement'
327 $ hg commit -m b
327 $ hg commit -m b
328 $ hg status
328 $ hg status
329 >>> with open('a2', 'wb') as f:
329 >>> with open('a2', 'wb') as f:
330 ... f.write(b'\1\nSTART-WITH-HG-FILELOG-METADATA')
330 ... f.write(b'\1\nSTART-WITH-HG-FILELOG-METADATA') and None
331 >>> with open('a1', 'wb') as f:
331 >>> with open('a1', 'wb') as f:
332 ... f.write(b'\1\nMETA\n')
332 ... f.write(b'\1\nMETA\n') and None
333 $ hg commit -m meta
333 $ hg commit -m meta
334 $ hg status
334 $ hg status
335 $ hg log -T '{rev}: {file_copies} | {file_dels} | {file_adds}\n'
335 $ hg log -T '{rev}: {file_copies} | {file_dels} | {file_adds}\n'
General Comments 0
You need to be logged in to leave comments. Login now