[Python-checkins] CVS: python/dist/src/Lib/test test_gettext.py,1.3,1.4

Tim Peters python-dev@python.org
Sat, 26 Aug 2000 14:01:31 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv20195

Modified Files:
	test_gettext.py 
Log Message:
Open binary files in binary mode.  Fixes test failure under Windows.


Index: test_gettext.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_gettext.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** test_gettext.py	2000/08/25 19:53:51	1.3
--- test_gettext.py	2000/08/26 21:01:27	1.4
***************
*** 103,107 ****
  def setup():
      os.makedirs(LOCALEDIR)
!     fp = open(MOFILE, 'w')
      fp.write(base64.decodestring(GNU_MO_DATA))
      fp.close()
--- 103,107 ----
  def setup():
      os.makedirs(LOCALEDIR)
!     fp = open(MOFILE, 'wb')
      fp.write(base64.decodestring(GNU_MO_DATA))
      fp.close()