Navigation Menu

Skip to content

Commit

Permalink
Added now var to Rakefile for upgrade; fixed nosetests issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Barratt committed Aug 29, 2012
1 parent 168295e commit 4863b17
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions Rakefile
Expand Up @@ -8,6 +8,7 @@ ssh_user = "serialized.net@serialized.net"
ssh_port = "22"
document_root = "~/domains/serialized.net/html/"
deploy_default = "rsync"
rsync_delete = "false"

# This will be configured for you when you run config_deploy
deploy_branch = "gh-pages"
Expand Down
9 changes: 8 additions & 1 deletion source/_posts/2012-08-29-debugging-python-tests.markdown
Expand Up @@ -21,7 +21,14 @@ you can just run
$ nosetests --pdb
```

and that gets you a debugger right aimed at your failing tests.
or

```
$ nosetests --pdb-failures
```

and that gets you a debugger right aimed at your failing tests. (Not sure why
you sometimes need one vs the other.)

If your test isn't failing, or you want to trap things higher up the stack than what actually ends up making the test fail, you can also do it manually.
Just run python with `-m pdb` to run the debugger, and set the breakpoint:
Expand Down

0 comments on commit 4863b17

Please sign in to comment.