Backed out changeset 7d2018774925
diff --git a/Lib/test/test_cgi.py b/Lib/test/test_cgi.py
index 04a1e48..c9cf095 100644
--- a/Lib/test/test_cgi.py
+++ b/Lib/test/test_cgi.py
@@ -194,9 +194,9 @@
         cgi.initlog("%s", "Testing initlog 1")
         cgi.log("%s", "Testing log 2")
         self.assertEqual(cgi.logfp.getvalue(), "Testing initlog 1\nTesting log 2\n")
-        if os.path.exists(os.devnull):
+        if os.path.exists("/dev/null"):
             cgi.logfp = None
-            cgi.logfile = os.devnull
+            cgi.logfile = "/dev/null"
             cgi.initlog("%s", "Testing log 3")
             cgi.log("Testing log 4")