Skip to content

Instantly share code, notes, and snippets.

manage.py:4:20: E261 at least two spaces before inline comment
Separate inline comments by at least two spaces.
An inline comment is a comment on the same line as a statement. Inline
comments should be separated by at least two spaces from the statement.
They should start with a # and a single space.
Okay: x = x + 1 # Increment x
Okay: x = x + 1 # Increment x
E261: x = x + 1 # Increment x
./manage.py:4:20: E261 at least two spaces before inline comment
import settings # Assumed to be in the same directory.
^
./manage.py:7:80: E501 line too long (299 characters)
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
^
./settings.py:4:10: E401 multiple imports on one line
import os, sys
^
./settings.py:10:48: E231 missing whitespace after ','
'''
# $Id: db_mock.py 149 2007-08-30 08:12:24Z akhavr $
# Copyright (C) 2007 KDS Software Group http://www.kds.com.ua/
'''
import copy
import django.conf
from django.core.management import call_command
from django.db import backend, connection
$make
nosetests --with-coverage --cover-package=djangotest.registration djangotest/registration/
E.FEEEEEFFF
======================================================================
ERROR: djangotest.registration.test.TestRegistration.test_broken_profile
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/nose-0.10.3-py2.5.egg/nose/case.py", line 182, in runTest
self.test(*self.arg)
File "/work/workspace/test_ass/djangotest/djangotest/registration/test.py", line 47, in test_broken_profile