Document how to pdb bindings with Python-2.6 and update tests
This commit is contained in:
parent
e63a1c7cb5
commit
0db8154b9a
|
@ -154,6 +154,10 @@ class from :py:class:`pdb.Pdb` and decorate it with
|
|||
|
||||
just like you used ``python -m pdb``.
|
||||
|
||||
.. note:
|
||||
If you are using Python-2.6 you need to use ``python
|
||||
-mpowerline.bindings.pdb.__main__``, not what is shown above.
|
||||
|
||||
.. warning:
|
||||
Using PyPy (not PyPy3) forces ASCII-only prompts. In other cases unicode
|
||||
characters are allowed, even if you use `pdbpp
|
||||
|
|
|
@ -464,9 +464,13 @@ if test "x${ONLY_SHELL}" = "x" || test "x${ONLY_SHELL}" = "xpdb" ; then
|
|||
fi
|
||||
if test "x${ONLY_TEST_TYPE}" = "x" || test "x${ONLY_TEST_TYPE}" = "xmodule" ; then
|
||||
echo "> pdb module"
|
||||
if ! run_test module python $PDB_PYTHON -mpowerline.bindings.pdb "$PWD/tests/test_shells/pdb-script.py" ; then
|
||||
MODULE="powerline.bindings.pdb"
|
||||
if test "$PYTHON_MM" = "2.6" ; then
|
||||
MODULE="powerline.bindings.pdb.__main__"
|
||||
fi
|
||||
if ! run_test module python $PDB_PYTHON -m$MODULE "$PWD/tests/test_shells/pdb-script.py" ; then
|
||||
FAILED=1
|
||||
FAIL_SUMMARY="${FAIL_SUMMARY}${NL}T pdb $PDB_PYTHON -mpowerline.bindings.pdb $PWD/tests/test_shells/pdb-script"
|
||||
FAIL_SUMMARY="${FAIL_SUMMARY}${NL}T pdb $PDB_PYTHON -m$MODULE $PWD/tests/test_shells/pdb-script"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue