mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
#7092: silence some py3k warnings
This commit is contained in:
parent
a7f242fa2a
commit
dfd3618422
4 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue