@@ -20,8 +20,8 @@ def test_simple(self):
20
20
request_refresh = lambda : self .orig_stdout .flush ()
21
21
or self .orig_stderr .flush ()
22
22
)
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 )
25
25
sys .stdout = stdout
26
26
sys .stdout = stderr
27
27
c .load_code ("1 + 1" )
@@ -38,8 +38,8 @@ def test_exception(self):
38
38
def ctrlc ():
39
39
raise KeyboardInterrupt ()
40
40
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 )
43
43
sys .stdout = stdout
44
44
sys .stderr = stderr
45
45
c .load_code ("1 + 1" )
@@ -51,5 +51,5 @@ def assert_unicode(self, s):
51
51
self .assertIsInstance (s , type (u"" ))
52
52
53
53
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