diff --git a/contrib/buildbot/teamcity_wrapper.py b/contrib/buildbot/teamcity_wrapper.py --- a/contrib/buildbot/teamcity_wrapper.py +++ b/contrib/buildbot/teamcity_wrapper.py @@ -64,7 +64,7 @@ # We do not care about sub-second precision anyway. return int(time.time()) - def getIgnoreList(self, ignoreList): + def getIgnoreList(self): return self.ignoreList def setMockTime(self, mockTime): diff --git a/contrib/buildbot/test/test_teamcity.py b/contrib/buildbot/test/test_teamcity.py --- a/contrib/buildbot/test/test_teamcity.py +++ b/contrib/buildbot/test/test_teamcity.py @@ -24,6 +24,11 @@ def tearDown(self): pass + def test_ignoreList(self): + expectedList = [b'test'] + self.teamcity.ignoreList = expectedList + assert self.teamcity.getIgnoreList() == expectedList + def test_mockTime(self): currentTime = int(time.time()) - 1 assert self.teamcity.getTime() >= currentTime