[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1833501 - in /subversion/trunk/subversion/tests/cmdline: ./ svntest/

From: Julian Foad <julianfoad_at_apache.org>
Date: Thu, 14 Jun 2018 12:05:09 +0100

Branko Čibej wrote on 2018-06-14:
> > sbox.simple_move('A', 'A2')
> > sbox.simple_move('A2/mu', 'A2/mu2')
> > - open(sbox.ospath('A2/mu2'), 'w').write('r2\n')
> > + with open(sbox.ospath('A2/mu2'), 'w') as f:
> > + f.write('r2\n')
>
> I thought we had some kind of utility function for all of these?

sbox.simple_append('A2/mu2', 'r2\n', truncate=True)

is used in many places (including the test that was failing), and is equivalent except it uses mode 'wb' instead of 'w'. That difference is probably not important in most tests.

- Julian
Received on 2018-06-14 13:05:17 CEST

This is an archived mail posted to the Subversion Dev mailing list.