title: Pytest-django: cannot delete db after tests
body: <p>I have a Django application, and I'm trying to test it using <code>pytest</code> and <code>pytest-django</code>. However, quite often, when the tests finish running, I get the error that the database failed to be deleted: <code>DETAIL:  There is 1 other session using the database.</code></p>
  
  <p>Basically, the minimum test code that I could narrow it down to is: </p>
  
  <pre><code>@pytest.fixture
  def make_bundle():
      a = MyUser.objects.create(key_id=uuid.uuid4())
      return a
  
  
  class TestThings:
      def test_it(self, make_bundle):
          all_users = list(MyUser.objects.all())
          assert_that(all_users, has_length(1))
  </code></pre>
  
  <p>Every now and again the tests will fail with the above error. Is there something I am doing wrong? Or how can I fix this?</p>
  
  <p>The database that I am using is PostgreSQL 9.6.</p>