test_system: write test data in 'b' verbatim mode, since on windows the default text-mode is different. Addresses one of the failures in #223

This commit is contained in:
Brian Warner 2007-12-11 19:16:33 -07:00
parent 74820cc3de
commit b085097adc

View File

@ -1077,7 +1077,7 @@ class SystemTest(testutil.SignalMixin, unittest.TestCase):
tdir = self.getdir("cli_put")
fileutil.make_dirs(tdir)
fn = os.path.join(tdir, "upload_me")
f = open(fn, "w")
f = open(fn, "wb")
f.write(TESTDATA)
f.close()
argv = ["put"] + nodeargs + [fn, "test_put/upload.txt"]