The temporary file used in the test for bug #829 must not be deleted by the test.
This fixes the test in win32 platforms.
This commit is contained in:
parent
65d8f9fcef
commit
8ddbd3167b
1 changed files with 1 additions and 2 deletions
|
|
@ -3,12 +3,11 @@
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
from PySide.QtCore import QSettings
|
from PySide.QtCore import QSettings
|
||||||
from helper import adjust_filename
|
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
class QVariantConversions(unittest.TestCase):
|
class QVariantConversions(unittest.TestCase):
|
||||||
def testDictionary(self):
|
def testDictionary(self):
|
||||||
confFile = tempfile.NamedTemporaryFile()
|
confFile = tempfile.NamedTemporaryFile(delete=False)
|
||||||
s = QSettings(confFile.name, QSettings.IniFormat)
|
s = QSettings(confFile.name, QSettings.IniFormat)
|
||||||
# Save value
|
# Save value
|
||||||
s.setValue('x', {1: 'a'})
|
s.setValue('x', {1: 'a'})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue