Open beeekind opened 7 years ago
hey I'm not dealing with django yet but i had the same issue today when i was working with old project module string has changes in python3 in python 2 'string.letters' was working fine but in python 3 you need to add 'string.ascii_letters' in your case probably you need to edit File "/usr/local/lib/python3.6/site-packages/faker/providers/init.py", line 35 in return random.choice( string.letters ) to return random.choice( string.ascii_letters )
I had the same error in Flask . i just tried "string.ascii_letters" instead of "string.letters"
This error is raised when the following code is called in a Django test case:
Relevant stacktrace
If the test is run 5 times it will only error 3 or 4 times it is run - which makes it even more confusing. Any idea what is going on here? Thanks.