[pypy-commit] pypy py3.6: trivial fixes

mattip pypy.commits at gmail.com
Thu Jun 6 09:33:05 EDT 2019


Author: Matti Picus <matti.picus at gmail.com>
Branch: py3.6
Changeset: r96763:b0cb066e7e1f
Date: 2019-06-06 16:32 +0300
http://bitbucket.org/pypy/pypy/changeset/b0cb066e7e1f/

Log:	trivial fixes

diff --git a/pypy/module/_socket/interp_socket.py b/pypy/module/_socket/interp_socket.py
--- a/pypy/module/_socket/interp_socket.py
+++ b/pypy/module/_socket/interp_socket.py
@@ -793,7 +793,7 @@
         finally:
             lltype.free(info_ptr, flavor='raw')
         return w_bytes
-			
+
     @unwrap_spec(how="c_int")
     def shutdown_w(self, space, how):
         """shutdown(flag)
diff --git a/pypy/module/posix/test/test_posix2.py b/pypy/module/posix/test/test_posix2.py
--- a/pypy/module/posix/test/test_posix2.py
+++ b/pypy/module/posix/test/test_posix2.py
@@ -409,7 +409,7 @@
         path = self.path3
         with open(path, 'wb'):
             pass
-        os.unlink(self.Path())
+        os.unlink(path)
 
     def test_times(self):
         """
diff --git a/pypy/objspace/std/test/test_unicodeobject.py b/pypy/objspace/std/test/test_unicodeobject.py
--- a/pypy/objspace/std/test/test_unicodeobject.py
+++ b/pypy/objspace/std/test/test_unicodeobject.py
@@ -728,7 +728,7 @@
 
         raises(TypeError, 'hello'.translate)
         raises(ValueError, "\xff".translate, {0xff: sys.maxunicode+1})
-        raises(TypeError, u'x'.translate, {ord('x'):0x110000})
+        raises(ValueError, u'x'.translate, {ord('x'):0x110000})
 
     def test_maketrans(self):
         assert 'abababc' == 'abababc'.translate({'b': '<i>'})


More information about the pypy-commit mailing list