Closed ExcaliburZero closed 9 years ago
It looks like this error was caused by the following code in the test script:
class TestExample(unittest.TestCase):
def setUp(self):
self.AboutJekyllHelperDialog_members = [
'AboutDialog', 'AboutJekyllHelperDialog', 'gettext', 'logger', 'logging']
def test_AboutJekyllHelperDialog_members(self):
all_members = dir(AboutJekyllHelperDialog)
public_members = [x for x in all_members if not x.startswith('_')]
public_members.sort()
self.assertEqual(self.AboutJekyllHelperDialog_members, public_members)
It gets a list of all of the public members of AboutJekyllHelperDialog
, however it excludes all such members whose names begin with _
. It seems that as the about dialogue file imports gettext as shown below it is incorrectly excluded from the list, as it is imported as the exclusion character.
from locale import gettext as _
Thus to fix the error I had to manually append gettext to the list in the test file.
The following error shows up in the Travis CI tests with Python 2.7, but not 3.2.
Python 2.7