Skip to content

Commit

Permalink
Minor fixes for other Python versions / OSes
Browse files Browse the repository at this point in the history
  • Loading branch information
haukex committed Oct 15, 2024
1 parent ecc4a55 commit 08fdcf7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Empty file modified .devcontainer/initialize.sh
100644 → 100755
Empty file.
Empty file modified dev/isolated-dist-test.sh
100644 → 100755
Empty file.
Empty file modified dev/local-actions.sh
100644 → 100755
Empty file.
5 changes: 5 additions & 0 deletions tests/test_toa5.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ def test_to_csv_cli(self):
exit_call=(2, 'toa5.to_csv: error: Can only use --in-encoding when specifying an input file\n'))
self._fake_cli(toa5.to_csv.main, argv=['-cLatin1'], stderr=None,
exit_call=(2, 'toa5.to_csv: error: Can only use --out-encoding when specifying an output file\n'))
with NamedTempFileDeleteLater() as tf:
# just for coverage, a test with no data
tf.write(b"TOA5,sn,lm,ls,os,pn,ps,tn\nRECORD,BattV_Min\nRN,Volts\n,Min")
tf.close()
self.assertEqual( self._fake_cli(toa5.to_csv.main, argv=[tf.name]), ['RECORD,BattV_Min[V]'] )
with NamedTempFileDeleteLater() as tf:
tf.write(b"TOA5,sn,lm,ls,os,pn,ps,tn\nRECORD,BattV_Min\nRN,Volts\n,Min\n1,12\n")
tf.close()
Expand Down

0 comments on commit 08fdcf7

Please sign in to comment.