BIND 10 trac2823, updated. c630ff8a3861c5597a5c77a81eee52c09aaef643 [2823] Don't use private prefix in local scope
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue May 7 13:30:00 UTC 2013
The branch, trac2823 has been updated
via c630ff8a3861c5597a5c77a81eee52c09aaef643 (commit)
from 7ccddd64de7f7928d20f7eff23053b64c644349d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c630ff8a3861c5597a5c77a81eee52c09aaef643
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Tue May 7 15:28:36 2013 +0200
[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.
-----------------------------------------------------------------------
Summary of changes:
src/bin/stats/tests/stats-httpd_test.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/stats/tests/stats-httpd_test.py b/src/bin/stats/tests/stats-httpd_test.py
index 37ea7e3..84fac44 100644
--- a/src/bin/stats/tests/stats-httpd_test.py
+++ b/src/bin/stats/tests/stats-httpd_test.py
@@ -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):
- __call_checker()
+ call_checker()
self.assertRaises(stats_httpd.HttpServerError, FailingStatsHttpd)
self.assertTrue(self.__mccs_closed)
More information about the bind10-changes
mailing list