summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-12-15 14:47:39 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-12-15 20:50:12 -0300
commitebf5e4f9abe2fdcce050648aac938b6cb016abbb (patch)
treef85db9b09f4e1d516d404f61006671c564c75354
parent82d086285aa500ee54323d04996b8bf0acf5bd09 (diff)
downloadpyside-ebf5e4f9abe2fdcce050648aac938b6cb016abbb.tar.gz
pyside-ebf5e4f9abe2fdcce050648aac938b6cb016abbb.tar.xz
pyside-ebf5e4f9abe2fdcce050648aac938b6cb016abbb.zip
The temporary file used in the test for bug #829 must not be deleted by the test.
This fixes the test in win32 platforms.
-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 da527ad..945d8df 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'})