1. 26 Nis, 2019 4 kayıt (commit)
    • Victor Stinner's avatar
      bpo-36719: Fix regrtest re-run (GH-12964) · 837acc19
      Victor Stinner yazdı
      Properly handle a test which fail but then pass.
      
      Add test_rerun_success() unit test.
      837acc19
    • Victor Stinner's avatar
      bpo-36719: regrtest always detect uncollectable objects (GH-12951) · 75120d22
      Victor Stinner yazdı
      regrtest now always detects uncollectable objects. Previously, the
      check was only enabled by --findleaks. The check now also works with
      -jN/--multiprocess N.
      
      --findleaks becomes a deprecated alias to --fail-env-changed.
      75120d22
    • Victor Stinner's avatar
      bpo-36725: Refactor regrtest multiprocessing code (GH-12961) · 3cde440f
      Victor Stinner yazdı
      Rewrite run_tests_multiprocess() function as a new MultiprocessRunner
      class with multiple methods to better report errors and stop
      immediately when needed.
      
      Changes:
      
      * Worker processes are now killed immediately if tests are
        interrupted or if a test does crash (CHILD_ERROR): worker
        processes are killed.
      * Rewrite how errors in a worker thread are reported to
        the main thread. No longer ignore BaseException or parsing errors
        silently.
      * Remove 'finished' variable: use worker.is_alive() instead
      * Always compute omitted tests. Add Regrtest.get_executed() method.
      3cde440f
    • Victor Stinner's avatar
      bpo-36725: regrtest: add TestResult type (GH-12960) · 4d299831
      Victor Stinner yazdı
      * Add TestResult and MultiprocessResult types to ensure that results
        always have the same fields.
      * runtest() now handles KeyboardInterrupt
      * accumulate_result() and format_test_result() now takes a TestResult
      * cleanup_test_droppings() is now called by runtest() and mark the
        test as ENV_CHANGED if the test leaks support.TESTFN file.
      * runtest() now includes code "around" the test in the test timing
      * Add print_warning() in test.libregrtest.utils to standardize how
        libregrtest logs warnings to ease parsing the test output.
      * support.unload() is now called with abstest rather than test_name
      * Rename 'test' variable/parameter to 'test_name'
      * dash_R(): remove unused the_module parameter
      * Remove unused imports
      4d299831
  2. 24 Nis, 2019 1 kayıt (commit)
  3. 08 Ock, 2019 1 kayıt (commit)
  4. 14 Ara, 2018 1 kayıt (commit)
  5. 29 Kas, 2018 1 kayıt (commit)
  6. 15 Kas, 2018 1 kayıt (commit)
  7. 07 Eyl, 2018 1 kayıt (commit)
  8. 14 Haz, 2018 1 kayıt (commit)
  9. 08 Haz, 2018 1 kayıt (commit)
  10. 30 Nis, 2018 1 kayıt (commit)
  11. 07 Eyl, 2017 1 kayıt (commit)
  12. 25 Tem, 2017 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-31009: Fix support.fd_count() on Windows (#2862) · 302bbbe9
      Victor Stinner yazdı
      * bpo-31009: Fix support.fd_count() on Windows
      
      On Windows, test.support.fd_count() now calls
      msvcrt.CrtSetReportMode() to not kill the process nor log any error
      on stderr on os.dup(fd) if the file descriptor is invalid.
      
      * Fix for release mode
      302bbbe9
  13. 20 Tem, 2017 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-30822: Exclude tzdata from regrtest --all (#2775) · 5b392bba
      Victor Stinner yazdı
      When running the test suite using --use=all / -u all, exclude tzdata
      since it makes test_datetime too slow (15-20 min on some buildbots)
      which then times out on some buildbots.
      
      -u tzdata must now be enabled explicitly, -u tzdata or -u all,tzdata,
      to run all test_datetime tests.
      
      Fix also regrtest command line parser to allow passing -u
      extralargefile to run test_zipfile64.
      
      Travis CI: remove -tzdata. Replace -u all,-tzdata,-cpu with -u all,-cpu since tzdata is now excluded from -u all.
      5b392bba
  14. 27 Haz, 2017 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-30776: reduce regrtest -R false positives (#2422) · 48b5c422
      Victor Stinner yazdı
      * Change the regrtest --huntrleaks checker to decide if a test file
        leaks or not. Require that each run leaks at least 1 reference.
      * Warmup runs are now completely ignored: ignored in the checker test
        and not used anymore to compute the sum.
      * Add an unit test for a reference leak.
      
      Example of reference differences previously considered a failure
      (leak) and now considered as success (success, no leak):
      
          [3, 0, 0]
          [0, 1, 0]
          [8, -8, 1]
      48b5c422
  15. 26 Haz, 2017 2 kayıt (commit)
    • Victor Stinner's avatar
      bpo-30764: regrtest: add --fail-env-changed option (#2402) · 63f54c68
      Victor Stinner yazdı
      * bpo-30764: regrtest: change exit code on failure
      
      * Exit code 2 if failed tests ("bad")
      * Exit code 3 if interrupted
      
      * bpo-30764: regrtest: add --fail-env-changed option
      
      If the option is set, mark a test as failed if it alters the
      environment, for example if it creates a file without removing it.
      63f54c68
    • Victor Stinner's avatar
      bpo-30523: regrtest --list-cases --match (#2401) · ace56d58
      Victor Stinner yazdı
      * regrtest --list-cases now supports --match and --match-file options.
        Example: ./python -m test --list-cases -m FileTests test_os
      * --list-cases now also sets support.verbose to False to prevent
        messages to stdout when loading test modules.
      * Add support._match_test() private function.
      ace56d58
  16. 16 Haz, 2017 1 kayıt (commit)
  17. 09 Haz, 2017 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-30540: regrtest: add --matchfile option (#1909) · ef8320cf
      Victor Stinner yazdı
      * Add a new option taking a filename to get a list of test names to
        filter tests.
      * support.match_tests becomes a list.
      * Modify run_unittest() to accept to match the whole test identifier,
        not just a part of a test identifier.
      
      For example, the following command only runs test_default_timeout()
      of the BarrierTests class of test_threading:
      
      $ ./python -m test -v test_threading -m test.test_threading.BarrierTests.test_default_timeout
      
      Remove also some empty lines from test_regrtest.py to make flake8
      tool happy.
      ef8320cf
  18. 04 May, 2017 1 kayıt (commit)
  19. 06 Şub, 2017 1 kayıt (commit)
  20. 03 Ock, 2017 1 kayıt (commit)
  21. 19 Ara, 2016 1 kayıt (commit)
  22. 20 Eki, 2016 1 kayıt (commit)
  23. 17 Eki, 2016 1 kayıt (commit)
  24. 18 Eyl, 2016 1 kayıt (commit)
  25. 08 Eyl, 2016 1 kayıt (commit)
  26. 19 Agu, 2016 1 kayıt (commit)
  27. 17 Agu, 2016 3 kayıt (commit)
  28. 24 Nis, 2016 1 kayıt (commit)
  29. 30 Mar, 2016 3 kayıt (commit)
  30. 24 Mar, 2016 1 kayıt (commit)
  31. 23 Mar, 2016 1 kayıt (commit)
  32. 22 Mar, 2016 1 kayıt (commit)