def test_spinner_non_unicode_console():
 stream = FakeTTY(u'ascii')
 chars = console.Spinner._default_unicode_chars
 with console.Spinner(u'Reticulating splines', file=stream, chars=chars) as s:
  next(s)

def test_spinner_non_unicode_console ( ) : stream = FakeTTY ( u'ascii' ) chars = console . Spinner . _default_unicode_chars with console . Spinner ( u'Reticulating splines' , file = stream , chars = chars ) as s : next ( s )
regression test for #1760 ensures that the spinner can fall go into fallback mode when using the unicode spinner on a terminal whose default encoding cannot encode the unicode characters .