Skip to content

Commit

Permalink
Merge branch 'master' of github.com:morepath/more.transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
faassen committed Jul 18, 2016
2 parents 19d1678 + 58a832f commit 0f43b13
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
14 changes: 9 additions & 5 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ CHANGES
mounted applications. This is fixed in Morepath's new
``request.reset`` method, which we now use.

- Remove Python 2.5 syntax.
- Replaced custom exception re-raise machinery with a ``raise``
statement with no arguments. That was legacy code from
``pyramid_tm`` when they were using a context manager instead of a
``try...except`` statement.

See https://github.com/morepath/more.transaction/issues/7

- We had inherited a rather complicated ``reraise`` implementation
from ``pyramid_tm``. It appears to be in ``pyramid_tm`` for historical
reasons only, so we replaced it with a much simpler bare ``raise``.
- Update test suite to take advantage of Morepath 0.15.

- Remove Python 2.5 syntax.

https://github.com/morepath/more.transaction/issues/7

0.6 (2016-04-06)
================
Expand Down
12 changes: 0 additions & 12 deletions more/transaction/tests/test_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ def view_document(self, request):
def get_retry_attempts():
return 2

import more.transaction
morepath.scan(more.transaction)
morepath.commit(TestApp)

client = Client(TestApp())
response = client.get('/document/1')
assert response.text == 'ok'
Expand Down Expand Up @@ -77,10 +73,6 @@ def view_bar(self, request):
def get_retry_attempts():
return 2

import more.transaction
morepath.scan(more.transaction)
morepath.commit(TestApp)

client = Client(TestApp())
response = client.get('/foo/bar')
assert response.text == 'ok'
Expand Down Expand Up @@ -116,10 +108,6 @@ def view_foo(self, request):
def get_retry_attempts():
return 2

import more.transaction
morepath.scan(more.transaction)
morepath.commit(RootApp)

client = Client(RootApp())
response = client.get('/mount/sub')
assert response.text == 'ok'
Expand Down

0 comments on commit 0f43b13

Please sign in to comment.