Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-320

Tests should not rely on Database.drop()

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.2
    • Affects Version/s: 2.1.1
    • Component/s: None
    • None
    • Environment:
      OS X 10.7 64bit, HDD, standalone mongod
    • Fully Compatible

      More than half the time spent during a run of `python setup.py test` on my machine is spent allocating data files – I believe a lot of this is due to many (most?) test cases dropping databases in cases where .remove() or Collection.drop() could suffice.

      In my case, running the test suite of 342 tests (current master) took 64 seconds, 37 seconds of which were spent allocating data files. On my laptop with SSD, total time is 55 seconds, 26 of which are spent allocating.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            dcrosta Daniel Crosta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: