Guest User

Untitled

a guest
Jul 12th, 2013
115
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .^CTraceback (most recent call last):
  2. File "./tests.py", line 41, in <module>
  3. unittest.main()
  4. File "/usr/lib/python2.7/unittest/main.py", line 95, in __init__
  5. self.runTests()
  6. File "/usr/lib/python2.7/unittest/main.py", line 229, in runTests
  7. self.result = testRunner.run(self.test)
  8. File "/usr/lib/python2.7/unittest/runner.py", line 151, in run
  9. test(result)
  10. File "/usr/lib/python2.7/unittest/suite.py", line 70, in __call__
  11. return self.run(*args, **kwds)
  12. File "/usr/lib/python2.7/unittest/suite.py", line 108, in run
  13. test(result)
  14. File "/usr/lib/python2.7/unittest/suite.py", line 70, in __call__
  15. return self.run(*args, **kwds)
  16. File "/usr/lib/python2.7/unittest/suite.py", line 108, in run
  17. test(result)
  18. File "/usr/lib/python2.7/unittest/case.py", line 396, in __call__
  19. return self.run(*args, **kwds)
  20. File "/usr/lib/python2.7/unittest/case.py", line 332, in run
  21. testMethod()
  22. File "./tests.py", line 31, in test_make_unique_nickname
  23. nickname = User.make_unique_nickname('john')
  24. File "/home/mcbeef/programming/microblog/app/models.py", line 24, in make_unique_nickname
  25. if User.query.filter_by(nickname=nickname).first() is None:
  26. File "/home/mcbeef/programming/microblog/flask/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2156, in first
  27. ret = list(self[0:1])
  28. File "/home/mcbeef/programming/microblog/flask/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2023, in __getitem__
  29. return list(res)
  30. File "/home/mcbeef/programming/microblog/flask/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2348, in instances
  31. rows = [process[0](row, None) for row in fetch]
  32. File "/home/mcbeef/programming/microblog/flask/local/lib/python2.7/site-packages/sqlalchemy/orm/mapper.py", line 2001, in _instance
  33. eager_populators
  34. File "/home/mcbeef/programming/microblog/flask/local/lib/python2.7/site-packages/sqlalchemy/orm/mapper.py", line 2186, in _populators
  35. pops[i].append((prop.key, pop))
  36. KeyboardInterrupt
RAW Paste Data