1. Brodie Rao
  2. cram
  3. Issues
Issue #28 resolved

Crash on 3.2.3

Maximilien Riehl
created an issue

Hi!

We're having problems on python 3.2.3 (the travis version of 3.2).

Basically the root problem seems to be cram.py:202

output = p.communicate(input=''.join(stdin))[0]

Which tries to (afaik?) use input as a buffer. Probably related to http://stackoverflow.com/questions/5471158/typeerror-str-does-not-support-the-buffer-interface. It's passing on 3.3, so...

Here's the traceback :

[ERROR] Traceback (most recent call last):
[ERROR]   File "/home/travis/virtualenv/python3.2/bin/cram", line 4, in <module>
[ERROR]     sys.exit(cram.main(sys.argv[1:]))
[ERROR]   File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/cram.py", line 505, in main
[ERROR]     patchcmd, answer, opts.indent)
[ERROR]   File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/cram.py", line 322, in run
[ERROR]     refout, postout, diff = test(abspath, shell, indent)
[ERROR]   File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/cram.py", line 202, in test
[ERROR]     output = p.communicate(input=''.join(stdin))[0]
[ERROR]   File "/usr/lib/python3.2/subprocess.py", line 819, in communicate
[ERROR]     return self._communicate(input)
[ERROR]   File "/usr/lib/python3.2/subprocess.py", line 1425, in _communicate
[ERROR]     stdout, stderr = self._communicate_with_poll(input)
[ERROR]   File "/usr/lib/python3.2/subprocess.py", line 1492, in _communicate_with_poll
[ERROR]     input_offset += os.write(fd, chunk)
[ERROR] TypeError: 'str' does not support the buffer interface

Comments (1)

  1. Log in to comment