1. fiji
  2. django-3k
  3. Issues
Issue #84 open

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

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/_doctest.py", 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/models.py", line unknown line number, in API_TESTS

File "/home/joel/workspace/django-3k/build/tests/modeltests/force_insert_update/models.py", line ?, in modeltests.force_insert_update.models.test.API_TESTS Failed example: try: c.save(force_insert=True) 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