]> granicus.if.org Git - python/commit
bpo-31009: Move fd_count() to test.support (#7308)
authorVictor Stinner <vstinner@redhat.com>
Fri, 1 Jun 2018 11:47:24 +0000 (13:47 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Jun 2018 11:47:24 +0000 (13:47 +0200)
commit99ba73d1188f4d52d2c741c26267da00a008f379
tree59b82aad70fbf328c953bdb6209e51311d75b82c
parent1d5198fd41ad9185e9e6b3aa595769c3693d57be
bpo-31009: Move fd_count() to test.support (#7308)

* Move fd_count() from test.libregrtest.refleak to test.support
* Fix support.fd_count() on Windows: Call CrtSetReportMode() to not
  kill the process on invalid file descriptor if Python is compiled
  in debug mode.
Lib/test/libregrtest/refleak.py
Lib/test/support/__init__.py
Lib/test/test_regrtest.py