Commit c630ff8a authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2823] Don't use private prefix in local scope

For one, it makes no sense (it won't be visible from outside the
function anyway), for another, it didn't work, because it was called
from different scope (inside the FailingStatsHttpd class) and mangling
the name wrongly.
parent 7ccddd64
......@@ -651,13 +651,13 @@ class TestStatsHttpd(unittest.TestCase):
self.__mccs_closed = False
def __call_checker():
def call_checker():
self.__mccs_closed = True
class FailingStatsHttpd(MyStatsHttpd):
def open_httpd(self):
raise stats_httpd.HttpServerError
def close_mccs(self):
self.assertRaises(stats_httpd.HttpServerError, FailingStatsHttpd)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment