Browse Source

Fix test failure on py3k

Mike Naberezny 10 năm trước cách đây
mục cha
commit
c2c6439973
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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()