#7092: silence some py3k warnings

This commit is contained in:
Florent Xicluna 2010-04-02 08:30:21 +00:00
parent a7f242fa2a
commit dfd3618422
4 changed files with 6 additions and 6 deletions

View file

@ -72,11 +72,11 @@ class InternalFunctionsTest(unittest.TestCase):
{'-option': '{one two} three'})
# ignore an option
amount_opts = len(ttk._format_optdict(opts, ignore=(u'á'))) / 2
amount_opts = len(ttk._format_optdict(opts, ignore=(u'á'))) // 2
self.assertEqual(amount_opts, len(opts) - 1)
# ignore non-existing options
amount_opts = len(ttk._format_optdict(opts, ignore=(u'á', 'b'))) / 2
amount_opts = len(ttk._format_optdict(opts, ignore=(u'á', 'b'))) // 2
self.assertEqual(amount_opts, len(opts) - 1)
# ignore every option