1. Ian Bicking
  2. ScriptTest
  3. Pull requests

Pull requests

#3 Merged at 29704c7
Repository
msabramo
Branch
issue-10
Repository
ianb
Branch
default

Fix issue 10: scripttest.backwardscompat.string fails in Python 2 when input is a unicode

Author
  1. Marc Abramowitz
Reviewers
Description

Fix issue 10: scripttest.backwardscompat.string fails in Python 2 when input is a unicode

https://bitbucket.org/ianb/scripttest/issue/10/scripttestbackwardscompatstring-fails-in

Comments (1)

  1. Marc Abramowitz author

    With my change:

    $ python -V
    Python 2.7
    
    $ nosetests -s -v tests/test_string.py 
    tests.test_string.skip_test_if_not_python_2 ... ok
    tests.test_string.skip_test_if_not_python_3 ... SKIP
    tests.test_string.test_python_2_string_with_ascii_str ... ok
    tests.test_string.test_python_2_string_with_utf8_str ... ok
    tests.test_string.test_python_2_string_with_ascii_unicode ... ok
    tests.test_string.test_python_2_string_with_utf8_unicode ... ok
    tests.test_string.test_python_3_string_with_ascii_bytes ... SKIP
    tests.test_string.test_python_3_string_with_utf8_bytes ... SKIP
    tests.test_string.test_python_3_string_with_ascii_str ... SKIP
    tests.test_string.test_python_3_string_with_utf8_str ... SKIP
    
    ----------------------------------------------------------------------
    Ran 10 tests in 0.007s
    
    OK (SKIP=5)