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

azoner / pyx12 / 206
65%

Build:
DEFAULT BRANCH: master
Ran 14 Jan 2020 10:27PM UTC
Jobs 3
Files 39
Run time 23s
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

pending completion
206

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.

3499 of 5236 relevant lines covered (66.83%)

2.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 206.1 14 Jan 2020 10:27PM UTC 0
66.61
Travis Job 206.1
2 206.2 14 Jan 2020 10:27PM UTC 0
66.74
Travis Job 206.2
3 206.3 14 Jan 2020 10:27PM UTC 0
66.77
Travis Job 206.3
Source Files on build 206
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #206
  • Pull Request #67
  • PR Base - master (#205)
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