From: Martin v. Löwis Date: Thu, 8 Apr 2010 09:47:40 +0000 (+0000) Subject: Issue #8344: Fix test_ttk bug on FreeBSD. X-Git-Tag: v2.7b1~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b287c7434180677fc0251ebe209a8e091cb887f;p=python Issue #8344: Fix test_ttk bug on FreeBSD. --- diff --git a/Lib/lib-tk/test/test_ttk/test_widgets.py b/Lib/lib-tk/test/test_ttk/test_widgets.py index 6cf040ce36..4b97a0ec54 100644 --- a/Lib/lib-tk/test/test_ttk/test_widgets.py +++ b/Lib/lib-tk/test/test_ttk/test_widgets.py @@ -1112,9 +1112,9 @@ class TreeviewTest(unittest.TestCase): self.assertRaises(Tkinter.TclError, self.tv.tag_configure, 'test', sky='blue') self.tv.tag_configure('test', foreground='blue') - self.assertEqual(self.tv.tag_configure('test', 'foreground'), + self.assertEqual(str(self.tv.tag_configure('test', 'foreground')), 'blue') - self.assertEqual(self.tv.tag_configure('test', foreground=None), + self.assertEqual(str(self.tv.tag_configure('test', foreground=None)), 'blue') self.assertTrue(isinstance(self.tv.tag_configure('test'), dict)) diff --git a/Misc/NEWS b/Misc/NEWS index 3bd058d781..1630e8807b 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -58,6 +58,8 @@ Core and Builtins Library ------- +- Issue #8344: Fix test_ttk bug on FreeBSD. + - Issue #8321: Give access to OpenSSL version numbers from the `ssl` module, using the new attributes `ssl.OPENSSL_VERSION`, `ssl.OPENSSL_VERSION_INFO` and `ssl.OPENSSL_VERSION_NUMBER`.