Ran 15 tests in 0.002s OK
diff --git a/OpenSSL/test/test_rand.py b/OpenSSL/test/test_rand.py
index c8645a5..db1544c 100644
--- a/OpenSSL/test/test_rand.py
+++ b/OpenSSL/test/test_rand.py
@@ -158,7 +158,7 @@
         # Write random bytes to a file
         tmpfile = self.mktemp()
         # Make sure it exists (so cleanup definitely succeeds)
-        fObj = file(tmpfile, 'w')
+        fObj = open(tmpfile, 'w')
         fObj.close()
         try:
             rand.write_file(tmpfile)