brendanarnold / py-fortranformat

MIT License
31 stars 7 forks source link

Hangs when G_INPUT_TRIAL_EDS gets input that does not match #15

Closed brendanarnold closed 2 years ago

brendanarnold commented 3 years ago

See this test case

def config_test_6(self):
      '''Custom G_INPUT_TRIAL_EDS'''
      config.G_INPUT_TRIAL_EDS = ['L']
      ff = FortranRecordReader('(G10.2)')
      result = ff.read('         0')
      self.assertEqual(result, [None])
brendanarnold commented 2 years ago

Fixed in v1.1.1