1. 24 Mar, 2016 6 commits
    • Victor Stinner's avatar
      Enhance and modernize test_genericpath · e321274b
      Victor Stinner authored
      * Replace "try/finally: os.remove()" with self.addCleanup(support.unlink) or
        self.addCleanup(support.rmdir): the support function handles the case when
        the file doesn't exist
      * Replace "try/finally: f.close()" with "with open(...) as f:"
      * test_getsize: add a second test with a different size
      * Create file using "x" mode to ensure that the file didn't exist before, to
        detect bugs in tests
      * Open files in unbuffered mode (buferring=0) to write immediatly data on disk
      * Replace map() with simpler code
      * Split isdir() unit test into two units tests to make them less dependant,
        same change for isfile() test
      * test_samefile(): test also two different files
      e321274b
    • Victor Stinner's avatar
      Enhance os._DummyDirEntry · ba8b0a7d
      Victor Stinner authored
      Issue #25911:
      
      * Try to fix test_os.BytesWalkTests on Windows
      * Try to mimick better the reference os.DirEntry on Windows
      * _DummyDirEntry now caches os.stat() result
      * _DummyDirEntry constructor now tries to get os.stat()
      ba8b0a7d
    • Victor Stinner's avatar
    • Victor Stinner's avatar
    • Victor Stinner's avatar
      regrtest: fix --fromfile feature · 5de16e80
      Victor Stinner authored
      * Update code for the name regrtest output format.
      * Enhance also test_regrtest test on --fromfile
      5de16e80
    • Victor Stinner's avatar
      Fix DeprecationWarning on Windows · 923590e3
      Victor Stinner authored
      Issue #25911: Use support.check_warnings() to expect or ignore
      DeprecationWarning in test_os.
      923590e3
  2. 23 Mar, 2016 34 commits