[ckan-changes] [okfn/ckan] cbd8d8: [#1117] Don't use `with nose.tools.assert_raises`

GitHub noreply at github.com
Thu Aug 1 10:37:04 UTC 2013


  Branch: refs/heads/1117-start-new-test-suite
  Home:   https://github.com/okfn/ckan
  Commit: cbd8d8910727bc1d0d26e06048b50096537e746e
      https://github.com/okfn/ckan/commit/cbd8d8910727bc1d0d26e06048b50096537e746e
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-08-01 (Thu, 01 Aug 2013)

  Changed paths:
    M ckan/new_tests/lib/navl/test_validators.py
    M ckan/new_tests/logic/action/test_update.py
    M ckan/new_tests/logic/test_validators.py

  Log Message:
  -----------
  [#1117] Don't use `with nose.tools.assert_raises`

Third attempt to fix the new tests in Python 2.6. Looks like using
assert_raises as a context manager doesn't work in Python 2.6 at all.
Just use nose.tools.assert_raises(...) normally instead.





More information about the ckan-changes mailing list