Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions traitlets/config/tests/test_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _check_conf(self, config):
self.assertEqual(config.D.C.value, 'hi there')

def test_python(self):
fd, fname = mkstemp('.py')
fd, fname = mkstemp('.py', prefix=u'μnïcø∂e')
f = os.fdopen(fd, 'w')
f.write(pyfile)
f.close()
Expand All @@ -88,7 +88,7 @@ def test_python(self):
self._check_conf(config)

def test_json(self):
fd, fname = mkstemp('.json')
fd, fname = mkstemp('.json', prefix=u'μnïcø∂e')
f = os.fdopen(fd, 'w')
f.write(json1file)
f.close()
Expand All @@ -99,7 +99,7 @@ def test_json(self):

def test_context_manager(self):

fd, fname = mkstemp('.json')
fd, fname = mkstemp('.json', prefix=u'μnïcø∂e')
f = os.fdopen(fd, 'w')
f.write('{}')
f.close()
Expand All @@ -118,7 +118,7 @@ def test_context_manager(self):
self.assertEqual(cl.config.MyAttr.value, value)

def test_json_context_bad_write(self):
fd, fname = mkstemp('.json')
fd, fname = mkstemp('.json', prefix=u'μnïcø∂e')
f = os.fdopen(fd, 'w')
f.write('{}')
f.close()
Expand Down Expand Up @@ -164,7 +164,7 @@ def test_collision(self):
})

def test_v2raise(self):
fd, fname = mkstemp('.json')
fd, fname = mkstemp('.json', prefix=u'μnïcø∂e')
f = os.fdopen(fd, 'w')
f.write(json2file)
f.close()
Expand Down