Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3.5
Changeset: r88198:d7acab6ea3f1
Date: 2016-11-08 08:54 +0100
http://bitbucket.org/pypy/pypy/changeset/d7acab6ea3f1/
Log: Fix most test_ttk failures
diff --git a/lib-python/3/tkinter/test/test_ttk/test_extensions.py
b/lib-python/3/tkinter/test/test_ttk/test_extensions.py
--- a/lib-python/3/tkinter/test/test_ttk/test_extensions.py
+++ b/lib-python/3/tkinter/test/test_ttk/test_extensions.py
@@ -2,7 +2,7 @@
import unittest
import tkinter
from tkinter import ttk
-from test.support import requires, run_unittest, swap_attr
+from test.support import requires, run_unittest, swap_attr, gc_collect
from tkinter.test.support import AbstractTkTest, destroy_default_root
requires('gui')
diff --git a/lib-python/3/tkinter/test/test_ttk/test_widgets.py
b/lib-python/3/tkinter/test/test_ttk/test_widgets.py
--- a/lib-python/3/tkinter/test/test_ttk/test_widgets.py
+++ b/lib-python/3/tkinter/test/test_ttk/test_widgets.py
@@ -1,7 +1,7 @@
import unittest
import tkinter
from tkinter import ttk, TclError
-from test.support import requires
+from test.support import requires, gc_collect
import sys
from tkinter.test.test_ttk.test_functions import MockTclObj
@@ -837,6 +837,7 @@
self.assertEqual(conv(self.scale.get()), var.get())
self.assertEqual(conv(self.scale.get()), max + 5)
del var
+ gc_collect()
# the same happens with the value option
self.scale['value'] = max + 10
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit