~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/graph.py

Rework test_script a little bit.


Don't allow someone to request a stdin request to echo.
Echo never reads from stdin, it just echos its arguments.
You use 'cat' if you want to read from stdin.

A few other fixes because the tests were using filenames
that are actually illegal on Windows, rather than just
nonexistant.


Change the exception handling for commands so that
unknown errors don't get silently squashed and then
turn into hard-to-debug errors later.

test_script now passes on Windows.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
from bzrlib import (
20
20
    debug,
21
21
    errors,
 
22
    osutils,
22
23
    revision,
23
24
    trace,
24
25
    )
1681
1682
_counters = [0,0,0,0,0,0,0]
1682
1683
try:
1683
1684
    from bzrlib._known_graph_pyx import KnownGraph
1684
 
except ImportError:
 
1685
except ImportError, e:
 
1686
    osutils.failed_to_load_extension(e)
1685
1687
    from bzrlib._known_graph_py import KnownGraph