Fixed test_tempfile.
Added the encoding, errors, line_buffering attribute to io.StringIO
make more compatible with TextIOWrapper's API.
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index 2caa56a..74e3cb2 100644
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -502,7 +502,7 @@
             # Setting newline="\n" avoids newline translation;
             # this is important because otherwise on Windows we'd
             # hget double newline translation upon rollover().
-            self._file = _io.StringIO(encoding=encoding, newline="\n")
+            self._file = _io.StringIO(newline="\n")
         self._max_size = max_size
         self._rolled = False
         self._TemporaryFileArgs = {'mode': mode, 'buffering': buffering,