2 """Test script for the binhex C module
4 Uses the mechanism of the python binhex module
9 from test_support
import verbose
, TestSkipped
14 fname1
= tempfile
.mktemp()
15 fname2
= tempfile
.mktemp()
18 raise TestSkipped
, "Cannot test binhex without a temp file"
20 start
= 'Jack is my hero'
24 binhex
.binhex(fname1
, fname2
)
28 binhex
.hexbin(fname2
, fname1
)
34 f
.close() # on Windows an open file cannot be unlinked
37 print 'Error: binhex != hexbin'
39 print 'binhex == hexbin'