]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
(merge 3.2) test_os: remove now useless TemporaryFileTests testcase
authorVictor Stinner <victor.stinner@haypocalc.com>
Fri, 1 Jul 2011 11:47:03 +0000 (13:47 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Fri, 1 Jul 2011 11:47:03 +0000 (13:47 +0200)
TemporaryFileTests has tests for os.tempnam() and os.tmpfile(), functions
removed from Python 3.

Move fdopen() tests to the FileTests testcase to test fdopen() on a file
descriptor, not on a directory descriptor (which raises an error on Windows).

1  2 
Lib/test/test_os.py

index 98a21298fd186118602681aba27aba3b711c4bee,efa28ea952b1c6aefdb91dde6fdca91c592c9226..72f1c1bc28993a5bc3ee4d76f41081c6253a5985
@@@ -1630,9 -1240,6 +1526,8 @@@ def test_main()
          PidTests,
          LoginTests,
          LinkTests,
-         TemporaryFileTests,
 +        TestSendfile,
 +        ProgramPriorityTests,
      )
  
  if __name__ == "__main__":