Index: django/test/testcases.py
===================================================================
--- django/test/testcases.py	(revision 6525)
+++ django/test/testcases.py	(working copy)
@@ -47,6 +47,14 @@
         # side effects on other tests.
         transaction.rollback_unless_managed()
 
+    def run(self, test, compileflags=None, out=None, clear_globs=True):
+        call_command('flush', verbosity=0, interactive=False)
+        if '__fixtures__' in test.globs:
+            # We have to use this slightly awkward syntax due to the fact
+            # that we're using *args and **kwargs together.
+            call_command('loaddata', *test.globs['__fixtures__'], **{'verbosity': 0})
+        return doctest.DocTestRunner.run(self, test, compileflags, out, clear_globs)
+
 class TestCase(unittest.TestCase):
     def _pre_setup(self):
         """Performs any pre-test setup. This includes:
Index: tests/regressiontests/doctest_fixtures/__init__.py
===================================================================
Index: tests/regressiontests/doctest_fixtures/fixtures/doctest_fixture.xml
===================================================================
--- tests/regressiontests/doctest_fixtures/fixtures/doctest_fixture.xml	(revision 0)
+++ tests/regressiontests/doctest_fixtures/fixtures/doctest_fixture.xml	(revision 0)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<django-objects version="1.0">
+  <object pk="1" model="doctest_fixtures.band">
+    <field type="CharField" name="name">The Doors</field>
+  </object>
+</django-objects>
Index: tests/regressiontests/doctest_fixtures/tests.py
===================================================================
Index: tests/regressiontests/doctest_fixtures/models.py
===================================================================
--- tests/regressiontests/doctest_fixtures/models.py	(revision 0)
+++ tests/regressiontests/doctest_fixtures/models.py	(revision 0)
@@ -0,0 +1,44 @@
+"""
+This object should have been loaded from the doctest_fixture.xml fixture.
+
+>>> Band.objects.get(pk=1)
+<Band: The Doors>
+"""
+
+from django.db import models
+
+class Band(models.Model):
+    """
+    This object should have been loaded from the doctest_fixture.xml fixture.
+    
+    >>> Band.objects.get(pk=1)
+    <Band: The Doors>
+    """
+    name = models.CharField(max_length=100)
+
+    def __unicode__(self):
+        """
+        This object should have been loaded from the doctest_fixture.xml fixture.
+        
+        >>> Band.objects.get(pk=1)
+        <Band: The Doors>
+        """
+        return self.name
+
+def test(self):
+    """
+    This object should have been loaded from the doctest_fixture.xml fixture.
+    
+    >>> Band.objects.get(pk=1)
+    <Band: The Doors>
+    """
+    pass
+
+__fixtures__ = ['doctest_fixture.xml']
+
+__test__ = {'API_TESTS': """
+This object should have been loaded from the doctest_fixture.xml fixture.
+
+>>> Band.objects.get(pk=1)
+<Band: The Doors>
+"""}
