Author: Matti Picus <[email protected]>
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>'})
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to