@@ -17,8 +17,8 @@ def tearDown(self):
17
17
def test_simple (self ):
18
18
c = CodeRunner (request_refresh = lambda : self .orig_stdout .flush () or
19
19
self .orig_stderr .flush ())
20
- stdout = FakeOutput (c , lambda * args , ** kwargs : None )
21
- stderr = FakeOutput (c , lambda * args , ** kwargs : None )
20
+ stdout = FakeOutput (c , lambda * args , ** kwargs : None , None )
21
+ stderr = FakeOutput (c , lambda * args , ** kwargs : None , None )
22
22
sys .stdout = stdout
23
23
sys .stdout = stderr
24
24
c .load_code ('1 + 1' )
@@ -33,8 +33,8 @@ def test_exception(self):
33
33
def ctrlc ():
34
34
raise KeyboardInterrupt ()
35
35
36
- stdout = FakeOutput (c , lambda x : ctrlc ())
37
- stderr = FakeOutput (c , lambda * args , ** kwargs : None )
36
+ stdout = FakeOutput (c , lambda x : ctrlc (), None )
37
+ stderr = FakeOutput (c , lambda * args , ** kwargs : None , None )
38
38
sys .stdout = stdout
39
39
sys .stderr = stderr
40
40
c .load_code ('1 + 1' )
@@ -47,5 +47,5 @@ def assert_unicode(self, s):
47
47
self .assertIsInstance (s , type (u'' ))
48
48
49
49
def test_bytes (self ):
50
- out = FakeOutput (mock .Mock (), self .assert_unicode )
50
+ out = FakeOutput (mock .Mock (), self .assert_unicode , None )
51
51
out .write ('native string type' )
0 commit comments