Explorar o código

Fix test failure on py3k

Mike Naberezny %!s(int64=10) %!d(string=hai) anos
pai
achega
c2c6439973
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      supervisor/tests/test_http.py

+ 1 - 1
supervisor/tests/test_http.py

@@ -147,7 +147,7 @@ class TailFProducerTests(unittest.TestCase):
         result = producer.more()
         self.assertEqual(result, as_bytes('a' * 80))
         f.close()
-        f2 = open(f.name, 'w')
+        f2 = open(f.name, 'wb')
         try:
             f2.write(as_bytes('b' * 80))
             f2.close()