diff --git a/docs/source/usage/other.rst b/docs/source/usage/other.rst index 108ec3ed..c160339f 100644 --- a/docs/source/usage/other.rst +++ b/docs/source/usage/other.rst @@ -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 diff --git a/tests/test_shells/test.sh b/tests/test_shells/test.sh index effd3c45..d436080e 100755 --- a/tests/test_shells/test.sh +++ b/tests/test_shells/test.sh @@ -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