##// 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 299 ... runcommand(server, ['bookmarks', 'bm3'])
300 300 ... f = open('a', 'ab')
301 ... f.write('a\n')
301 ... f.write('a\n') and None
302 302 ... f.close()
303 303 ... runcommand(server, ['commit', '-Amm'])
304 304 ... runcommand(server, ['bookmarks'])
@@ -391,7 +391,7 b' Clean hook cached version'
391 391 ... readchannel(server)
392 392 ... runcommand(server, ['commit', '-Am.'])
393 393 ... f = open('ignored-file', 'ab')
394 ... f.write('')
394 ... f.write('') and None
395 395 ... f.close()
396 396 ... f = open('.hgignore', 'ab')
397 397 ... f.write('ignored-file')
@@ -418,7 +418,7 b' cache of non-public revisions should be '
418 418 ... for i in range(5, 7):
419 419 ... f = open('a', 'ab')
420 420 ... f.seek(0, os.SEEK_END)
421 ... f.write('a\n')
421 ... f.write('a\n') and None
422 422 ... f.close()
423 423 ... os.system('hg commit -Aqm%d' % i)
424 424 ... # new commits should be listed as draft revisions
@@ -463,7 +463,7 b' cache of phase roots should be invalidat'
463 463 ... # create new head, 5:731265503d86
464 464 ... runcommand(server, ['update', '-C', '0'])
465 465 ... f = open('a', 'ab')
466 ... f.write('a\n')
466 ... f.write('a\n') and None
467 467 ... f.close()
468 468 ... runcommand(server, ['commit', '-Am.', 'a'])
469 469 ... runcommand(server, ['log', '-Gq'])
@@ -217,7 +217,7 b' hg status of kw-ignored binary file star'
217 217 >>> open("i", "wb").write("\1\nfoo") and None
218 218 $ hg -q commit -Am metasep i
219 219 $ hg status
220 >>> open("i", "wb").write("\1\nbar")
220 >>> open("i", "wb").write("\1\nbar") and None
221 221 $ hg status
222 222 M i
223 223 $ hg -q commit -m "modify metasep" i
@@ -943,7 +943,7 b' Imported patch should not be rejected'
943 943
944 944 >>> import re
945 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 947 $ hg --debug commit -m'rejects?' -d '3 0' -u 'User Name <user@example.com>'
948 948 committing files:
949 949 a
@@ -243,7 +243,7 b' Archive contains largefiles'
243 243 >>> import urllib2
244 244 >>> u = 'http://localhost:%s/archive/default.zip' % os.environ['HGPORT2']
245 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 247 $ unzip -t archive.zip
248 248 Archive: archive.zip
249 249 testing: empty-default/.hg_archival.txt*OK (glob)
@@ -327,9 +327,9 b' enabled adds the lfs requirement'
327 327 $ hg commit -m b
328 328 $ hg status
329 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 331 >>> with open('a1', 'wb') as f:
332 ... f.write(b'\1\nMETA\n')
332 ... f.write(b'\1\nMETA\n') and None
333 333 $ hg commit -m meta
334 334 $ hg status
335 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