Browse Source

Fix test failure on py3k

Mike Naberezny 10 years ago
parent
commit
c2c6439973
1 changed files with 1 additions and 1 deletions
  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()