-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
part 2 of the tutorial, fixed some bugs
- Loading branch information
1 parent
860ee46
commit 9beffd7
Showing
7 changed files
with
87 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from uranium.pip_manager import PipManager | ||
from nose.tools import eq_ | ||
|
||
|
||
class TestPipManager(object): | ||
|
||
def setUp(self): | ||
self.pip = PipManager() | ||
|
||
def test_nonexistent_develop_egg(self): | ||
""" | ||
if there is an exception installing a develop egg, | ||
warn instead of raise an exception | ||
""" | ||
errors = self.pip.add_develop_eggs(['./gibberish']) | ||
eq_(len(errors), 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import traceback | ||
|
||
|
||
def log_exception(logger, level): | ||
""" | ||
log an exception at a specific level | ||
this should be called during exception handling. | ||
""" | ||
logger.log(level, traceback.format_exc()) |