summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2010-04-02 08:30:21 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2010-04-02 08:30:21 (GMT)
commitdfd3618422bc19ae48047e74c6320746ee6b610e (patch)
tree9312574057913b4b3291824e08f6244010972a9f /Lib/lib-tk
parenta7f242fa2a005082b2067a558471178a2ed3fc93 (diff)
downloadcpython-dfd3618422bc19ae48047e74c6320746ee6b610e.zip
cpython-dfd3618422bc19ae48047e74c6320746ee6b610e.tar.gz
cpython-dfd3618422bc19ae48047e74c6320746ee6b610e.tar.bz2
#7092: silence some py3k warnings
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/test/test_ttk/test_functions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/lib-tk/test/test_ttk/test_functions.py b/Lib/lib-tk/test/test_ttk/test_functions.py
index e516fa4..f8800ce 100644
--- a/Lib/lib-tk/test/test_ttk/test_functions.py
+++ b/Lib/lib-tk/test/test_ttk/test_functions.py
@@ -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