Forums

Segmentation Fault Django Test

I am trying to run a test in my django application but i got this error saying "segmentation fault". I have no clue what it means.

tests.py

class TestsampleTestCase(TestCase): def test_sample(self): assert sum([1, 2, 3]) == 6

When i ran..... (sys-pack-py3.6) 22:13 ~/djangoProject $ python manage.py test

Using TensorFlow backend. System check identified no issues (0 silenced). Ran 0 tests in 0.000s OK Segmentation fault

Anyone knows what is going on? How do i fix this?

Thank you

A segmentation fault usually means that something has gone horribly wrong in a C extension in Python. It looks like the fault occurred after the test run so that suggests to me that it was caused when the process was exiting and cleaning up. I would suggest removing imports and apps until you don't get it anymore and then re-adding them until you find the thing that is causing the fault. Based on that, we might be able to come up with some other experiments you can do to identify the problem.