@@ -20,8 +20,8 @@ def test_simple(self):
2020 request_refresh = lambda : self .orig_stdout .flush ()
2121 or self .orig_stderr .flush ()
2222 )
23- stdout = FakeOutput (c , lambda * args , ** kwargs : None )
24- stderr = FakeOutput (c , lambda * args , ** kwargs : None )
23+ stdout = FakeOutput (c , lambda * args , ** kwargs : None , None )
24+ stderr = FakeOutput (c , lambda * args , ** kwargs : None , None )
2525 sys .stdout = stdout
2626 sys .stdout = stderr
2727 c .load_code ("1 + 1" )
@@ -38,8 +38,8 @@ def test_exception(self):
3838 def ctrlc ():
3939 raise KeyboardInterrupt ()
4040
41- stdout = FakeOutput (c , lambda x : ctrlc ())
42- stderr = FakeOutput (c , lambda * args , ** kwargs : None )
41+ stdout = FakeOutput (c , lambda x : ctrlc (), None )
42+ stderr = FakeOutput (c , lambda * args , ** kwargs : None , None )
4343 sys .stdout = stdout
4444 sys .stderr = stderr
4545 c .load_code ("1 + 1" )
@@ -51,5 +51,5 @@ def assert_unicode(self, s):
5151 self .assertIsInstance (s , type (u"" ))
5252
5353 def test_bytes (self ):
54- out = FakeOutput (mock .Mock (), self .assert_unicode )
55- out .write (" native string type" )
54+ out = FakeOutput (mock .Mock (), self .assert_unicode , None )
55+ out .write (' native string type' )
0 commit comments