Merge lp:~javier.collado/utah/use_isinstance into lp:utah
Proposed by
Javier Collado
Status: | Merged |
---|---|
Approved by: | Javier Collado |
Approved revision: | 789 |
Merged at revision: | 789 |
Proposed branch: | lp:~javier.collado/utah/use_isinstance |
Merge into: | lp:utah |
Diff against target: |
55 lines (+5/-5) 5 files modified
examples/run_utah_tests.py (+1/-1) utah/client/runner.py (+1/-1) utah/client/tests/test_vcs_bzr.py (+1/-1) utah/client/tests/test_vcs_dev.py (+1/-1) utah/client/tests/test_vcs_git.py (+1/-1) |
To merge this branch: | bzr merge lp:~javier.collado/utah/use_isinstance |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Max Brustkern (community) | Approve | ||
Review via email:
|
Description of the change
This is a small refactoring to use `isinstance` instead of `type` since it's
considered a good practice.
To post a comment you must log in.
Looks reasonable to me. self.assertIsIn stance( int(result) , int) looks a little funny at first, but I guess if it fails to cast result to int, it'll raise an exception.