summaryrefslogtreecommitdiff
path: root/tests/test_unicode.py
Commit message (Collapse)AuthorAgeFilesLines
* Missing time import -- there is no 'waitecho' functionjquast2014-06-151-0/+1
| | | | | | although I am against most time.sleep()s and trying my best to remove them where possible, there is no opposing waitnoecho() function (perhaps we should supply one?).
* Solaris support, tested on SmartOS from cron(1).Jeff Quast2014-06-151-5/+33
|
* PR #66: TypeError thrown by spawnu.readline()jquast2014-06-081-0/+9
| | | | | | | | Submitted by @auntieNeo, fixes exception, "TypeError: got <type 'str'> ('\r\n') as pattern" in spawnu.readline(). Bytes b'\r\n' was concatenated to u'unicode', causing an exception to be thrown when using readline().
* Fix imports in tests for Python 3Thomas Kluyver2014-06-011-1/+1
| | | | Closes gh-59
* use 'cat' with maxread=1 to reproduce same issuejquast2013-10-091-6/+6
|
* python 3.2 compat, which wont allow u''jquast2013-10-081-1/+1
|
* this test case *should* pass, but doesn'tjquast2013-10-081-0/+12
| | | | per issue #8; this will soon be resolved.
* Another unicode literalThomas Kluyver2013-09-251-1/+1
|
* Fix unicode literals for Python 3.2Thomas Kluyver2013-09-251-26/+26
|
* more unicode fixesjquast2013-09-221-31/+32
|
* py2.5 compatibilities w/six.pyjquast2013-09-221-1/+1
| | | | | | | | | | -except Exception as e: +except Exception, err: the unfortunate use of six.b('') instead of b'' print(arg0, arg1) => six.print_(arg0, arg1) some autopep8 -i is definitely called for, some of these test cases are darn unreadable, but did partially pep8 some of the really-long-over-80col-lines.
* py2 compatibility for encoding testingjquast2013-09-221-2/+13
| | | | | | indeed, older versions of python could read/write utf-8 files just fine, by using the codecs.open() function, which is pretty much the same thing as python3's io.open. However, it does not supply a `newline' keyword -- it doesn't seem to matter, so we just `del' it in our dummy function, if used.
* more py25 compatibilityjquast2013-09-221-1/+1
| | | | not even sure if pexpect can get as far back as python2.5, but its worth a shot.
* smartly use .replace & remove 'io' dep. for py2jquast2013-09-221-13/+9
| | | | here goes backwards compatibility testing for py2 versions -- though I have them all locally, trying for travis CI which would help identify problems going forward. I'm sure there is some six.PY3 things to work out yet, already noticed I need a from __future__ import for the 'with' contextmanager for python 2.5.
* cat(1) may display ^D\x08\x08 when ^D is used.jquast2013-09-221-2/+12
| | | | This causes various tests, that depend on cat(1) to fail on Mac OSX 10.8.5. These changes ensure that if ^D\x08\x08 ('^D', followed by '\b\b') is found, it is removed.
* Fix logging tests for Python 3Thomas Kluyver2013-09-201-6/+29
|
* Add spawnu interface for unicodeThomas Kluyver2013-09-191-0/+88