diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/idlelib/configHandler.py | 2 | ||||
-rw-r--r-- | Lib/test/test_csv.py | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/Lib/idlelib/configHandler.py b/Lib/idlelib/configHandler.py index d13f1e4..ea913c7 100644 --- a/Lib/idlelib/configHandler.py +++ b/Lib/idlelib/configHandler.py @@ -193,7 +193,7 @@ class IdleConf: """ Creates (if required) and returns a filesystem directory for storing user config files. - + """ cfgDir = '.idlerc' userDir = os.path.expanduser('~') diff --git a/Lib/test/test_csv.py b/Lib/test/test_csv.py index 21bd8d7..2347be9 100644 --- a/Lib/test/test_csv.py +++ b/Lib/test/test_csv.py @@ -30,9 +30,9 @@ class Test_Csv(unittest.TestCase): self.assertRaises(TypeError, ctor, arg, lineterminator=None) self.assertRaises(TypeError, ctor, arg, lineterminator=1) self.assertRaises(TypeError, ctor, arg, quoting=None) - self.assertRaises(TypeError, ctor, arg, + self.assertRaises(TypeError, ctor, arg, quoting=csv.QUOTE_ALL, quotechar='') - self.assertRaises(TypeError, ctor, arg, + self.assertRaises(TypeError, ctor, arg, quoting=csv.QUOTE_ALL, quotechar=None) def test_reader_arg_valid(self): @@ -172,15 +172,15 @@ class Test_Csv(unittest.TestCase): self.assertRaises(csv.Error, self._write_test, ['a',1,'p,"q"'], 'a,1,"p,\\"q\\""', - escapechar=None, doublequote=False) + escapechar=None, doublequote=False) self._write_test(['a',1,'p,"q"'], 'a,1,"p,\\"q\\""', escapechar='\\', doublequote = False) - self._write_test(['"'], '""""', + self._write_test(['"'], '""""', escapechar='\\', quoting = csv.QUOTE_MINIMAL) - self._write_test(['"'], '\\"', + self._write_test(['"'], '\\"', escapechar='\\', quoting = csv.QUOTE_MINIMAL, doublequote = False) - self._write_test(['"'], '\\"', + self._write_test(['"'], '\\"', escapechar='\\', quoting = csv.QUOTE_NONE) self._write_test(['a',1,'p,q'], 'a,1,p\\,q', escapechar='\\', quoting = csv.QUOTE_NONE) @@ -244,7 +244,7 @@ class Test_Csv(unittest.TestCase): # will this fail where locale uses comma for decimals? self._read_test([',3,"5",7.3, 9'], [['', 3, '5', 7.3, 9]], quoting=csv.QUOTE_NONNUMERIC) - self.assertRaises(ValueError, self._read_test, + self.assertRaises(ValueError, self._read_test, ['abc,3'], [[]], quoting=csv.QUOTE_NONNUMERIC) |