aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-12-15 14:47:39 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:56:23 -0300
commit8ddbd3167bba33820b19de36c2dbac83e9e8f55d (patch)
tree6deb8f34a6dab23160f90305ff443929d4b0c6fc /tests
parent65d8f9fcef98f8a80015cc5e0b7526224332e7ec (diff)
The temporary file used in the test for bug #829 must not be deleted by the test.
This fixes the test in win32 platforms.
Diffstat (limited to 'tests')
-rw-r--r--tests/QtCore/bug_829.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/QtCore/bug_829.py b/tests/QtCore/bug_829.py
index da527ad49..945d8dfb9 100644
--- a/tests/QtCore/bug_829.py
+++ b/tests/QtCore/bug_829.py
@@ -3,12 +3,11 @@
import unittest
from PySide.QtCore import QSettings
-from helper import adjust_filename
import tempfile
class QVariantConversions(unittest.TestCase):
def testDictionary(self):
- confFile = tempfile.NamedTemporaryFile()
+ confFile = tempfile.NamedTemporaryFile(delete=False)
s = QSettings(confFile.name, QSettings.IniFormat)
# Save value
s.setValue('x', {1: 'a'})