Author: Alex Gaynor <[email protected]>
Branch: 
Changeset: r70231:735f901dbac2
Date: 2014-03-24 00:17 -0700
http://bitbucket.org/pypy/pypy/changeset/735f901dbac2/

Log:    slightly more idiomatic

diff --git a/pypy/module/cpyext/test/test_pyerrors.py 
b/pypy/module/cpyext/test/test_pyerrors.py
--- a/pypy/module/cpyext/test/test_pyerrors.py
+++ b/pypy/module/cpyext/test/test_pyerrors.py
@@ -196,7 +196,7 @@
         except OSError, e:
             assert e.errno == errno.EBADF
             assert e.strerror == os.strerror(errno.EBADF)
-            assert e.filename == None
+            assert e.filename is None
 
     def test_SetFromErrnoWithFilename(self):
         import errno, os
@@ -228,7 +228,7 @@
                 ],
                 prologue="#include <errno.h>")
         exc_info = raises(OSError, module.set_from_errno)
-        assert exc_info.value.filename == None
+        assert exc_info.value.filename is None
         assert exc_info.value.errno == errno.EBADF
         assert exc_info.value.strerror == os.strerror(errno.EBADF)
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to