@@ -59,8 +59,8 @@ def test_external_communication(self):
59
59
self .repl .send_current_block_to_external_editor ()
60
60
self .repl .send_session_to_external_editor ()
61
61
62
- @unittest .skipIf ( not all (map (config .can_encode , 'å∂߃' )),
63
- 'Charset can not encode characters' )
62
+ @unittest .skipUnless ( all (map (config .can_encode , 'å∂߃' )),
63
+ 'Charset can not encode characters' )
64
64
def test_external_communication_encoding (self ):
65
65
with captured_output ():
66
66
self .repl .display_lines .append ('>>> "åß∂ƒ"' )
@@ -291,15 +291,15 @@ def assert_pager_gets_unicode(self, text):
291
291
def test_help (self ):
292
292
self .repl .pager (self .repl .help_text ())
293
293
294
- @unittest .skipIf ( not all (map (config .can_encode , 'å∂߃' )),
295
- 'Charset can not encode characters' )
294
+ @unittest .skipUnless ( all (map (config .can_encode , 'å∂߃' )),
295
+ 'Charset can not encode characters' )
296
296
def test_show_source_not_formatted (self ):
297
297
self .repl .config .highlight_show_source = False
298
298
self .repl .get_source_of_current_name = lambda : 'source code å∂߃åß∂ƒ'
299
299
self .repl .show_source ()
300
300
301
- @unittest .skipIf ( not all (map (config .can_encode , 'å∂߃' )),
302
- 'Charset can not encode characters' )
301
+ @unittest .skipUnless ( all (map (config .can_encode , 'å∂߃' )),
302
+ 'Charset can not encode characters' )
303
303
def test_show_source_formatted (self ):
304
304
self .repl .config .highlight_show_source = True
305
305
self .repl .get_source_of_current_name = lambda : 'source code å∂߃åß∂ƒ'
0 commit comments