| Index: tests/trychange_unittest.py
|
| diff --git a/tests/trychange_unittest.py b/tests/trychange_unittest.py
|
| index 12157fdc867c2452efc0d8f989f0ddb1bc5cc694..c7330e13d1fc9384d2bfa315c96a4edd2df41885 100755
|
| --- a/tests/trychange_unittest.py
|
| +++ b/tests/trychange_unittest.py
|
| @@ -5,9 +5,11 @@
|
|
|
| """Unit tests for trychange.py."""
|
|
|
| -# pylint: disable=E1103,W0403
|
| +import os
|
| +import sys
|
| +
|
| +sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
|
| -# Fixes include path.
|
| from super_mox import SuperMoxTestBase
|
|
|
| import subprocess2
|
| @@ -91,6 +93,7 @@ class GITUnittest(TryChangeTestsBase):
|
| self.compareMembers(trychange.GIT, members)
|
|
|
| def testBasic(self):
|
| + # pylint: disable=E1103
|
| trychange.os.path.abspath(self.fake_root).AndReturn(self.fake_root)
|
| trychange.scm.GIT.GetCheckoutRoot(self.fake_root).AndReturn(self.fake_root)
|
| trychange.scm.GIT.GetUpstreamBranch(self.fake_root).AndReturn('somewhere')
|
|
|