modeltests.force_insert_update - Fail with <class 'TypeError'>

Issue #84 open
Joel Crocker created an issue



FAIL: Doctest: modeltests.force_insert_update.models.test.API_TESTS

Traceback (most recent call last): File "/usr/local/lib/python3.1/dist-packages/django/test/", line 2234, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for modeltests.force_insert_update.models.test.API_TESTS File "/home/joel/workspace/django-3k/build/tests/modeltests/force_insert_update/", line unknown line number, in API_TESTS

File "/home/joel/workspace/django-3k/build/tests/modeltests/force_insert_update/", line ?, in modeltests.force_insert_update.models.test.API_TESTS Failed example: try: except Exception as e: if isinstance(e, IntegrityError): print("Pass") else: print("Fail with %s" % type(e)) Expected: Pass Got: Fail with <class 'TypeError'>

Ran 1 test in 0.021s

FAILED (failures=1)


Comments (3)

  1. Log in to comment