• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

azoner / pyx12 / 206 / 1
65%
master: 65%

Build:
DEFAULT BRANCH: master
Ran 14 Jan 2020 10:27PM UTC
Files 39
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Jan 2020 10:26PM UTC coverage: 66.61% (-0.2%) from 66.769%
206.1

Pull #67

travis-ci

web-flow
Fix string instead of bytes-like object error.

Running x12norm with python3 I received the following error:

Traceback (most recent call last):
  File "/usr/local/bin/x12norm", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/dist-packages/pyx12/scripts/x12norm.py", line 71, in main
    fd_out.write(seg_data.format() + eol)
TypeError: a bytes-like object is required, not 'str'

fd_out is a "tempfile.TemporaryFile()".

The tempfile docs state:
The mode parameter defaults to 'w+b' so that the file created can be read and
written without being closed. Binary mode is used so that it behaves
consistently on all platforms without regard for the data that is stored.

In other parts of the x12norm code mode 'w' is set explicitly so I think
it is okay to do so for the tempfile as well.  This commit does that.
Pull Request #67: Fix string instead of bytes-like object error.

3501 of 5256 relevant lines covered (66.61%)

0.67 hits per line

Source Files on job 206.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 204
  • Travis Job 206.1
  • b2631ce0 on github
  • Prev Job for on master (#205.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc