Skip to content
Snippets Groups Projects
  1. Jul 03, 2016
  2. Dec 07, 2015
  3. Apr 12, 2015
  4. Sep 28, 2014
  5. Nov 07, 2011
    • Matt Mackall's avatar
      run-tests: replace inline python handling with more native scheme · 5635a4017061
      Matt Mackall authored
      Normally changes in tests are reported like this in diffs:
      
         $ cat foo
      -  a
      +  b
      
      Using -i mode lets us update tests when the new results are correct
      and/or populate tests with their output.
      
      But with the standard doctest framework, inline Python sections in
      tests changes instead result in a big failure report that's unhelpful.
      So here, we replace the doctest calls with a simple compile/eval loop.
      5635a4017061
  6. Nov 01, 2011
    • Brodie Rao's avatar
      tests: fix readline escape characters in heredoctest.py/test-url.py · 474279be5add
      Brodie Rao authored
      This fix mirrors the changes made to test-doctest.py in b856071435f7
      and 967adcf5910d.
      
      Without this change, tests running heredoctest.py can fail on certain
      versions of OS X when TERM is set to xterm-256color:
      
         $ /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -m heredoctest <<EOF
         > >>> open('b', 'w').write('this' * 1000)
         > EOF
      +  \x1b[?1034h (no-eol) (esc)
      
      A similar problem occurs with test-url.py:
      
        $ ./run-tests.py test-url.py
      
        --- .../tests/test-url.py.out
        +++ .../tests/test-url.py.err
        @@ -0,0 +1 @@
        +
        ERROR: .../test-url.py output changed
        !
        Failed test-url.py: output changed
        # Ran 1 tests, 0 skipped, 1 failed.
      474279be5add
  7. Oct 13, 2011
  8. Oct 12, 2011
    • Idan Kamara's avatar
      tests: add helper script for processing doctests read from stdin · f7044da7a793
      Idan Kamara authored
      Writes stdin to a temp file and doctests it.
      
      In the future we might want to spare the temp file and directly call into
      doctest.
      
      Also, with some tweaking it seems possible to adjust the line numbers reported
      in an error report so they match the ones in the original file.
      f7044da7a793
Loading