def test_non_C_locale_with_fast_reader():
 current = locale.setlocale(locale.LC_ALL)
 try:
  if (platform.system() == 'Darwin'):
   locale.setlocale(locale.LC_ALL, str('de_DE'))
  else:
   locale.setlocale(locale.LC_ALL, str('de_DE.utf8'))
  for fast_reader in (True, False, {'use_fast_converter': False}, {'use_fast_converter': True}):
   t = ascii.read(['a b', '1.5 2'], format='basic', guess=False, fast_reader=fast_reader)
   assert (t['a'].dtype.kind == 'f')
 except locale.Error as e:
  pytest.skip('Locale error: {}'.format(e))
 finally:
  locale.setlocale(locale.LC_ALL, current)

def test_non_C_locale_with_fast_reader ( ) : current = locale . setlocale ( locale . LC_ALL ) try : if ( platform . system ( ) == 'Darwin' ) : locale . setlocale ( locale . LC_ALL , str ( 'de_DE' ) ) else : locale . setlocale ( locale . LC_ALL , str ( 'de_DE.utf8' ) ) for fast_reader in ( True , False , { 'use_fast_converter' : False } , { 'use_fast_converter' : True } ) : t = ascii . read ( [ 'a b' , '1.5 2' ] , format = 'basic' , guess = False , fast_reader = fast_reader ) assert ( t [ 'a' ] . dtype . kind == 'f' ) except locale . Error as e : pytest . skip ( 'Locale error: {}' . format ( e ) ) finally : locale . setlocale ( locale . LC_ALL , current )
test code that forces "c" locale while calling fast reader .