Merge lp:~cjwatson/storm/doctest-cleanup into lp:storm

Proposed by Colin Watson
Status: Merged
Merged at revision: 555
Proposed branch: lp:~cjwatson/storm/doctest-cleanup
Merge into: lp:storm
Diff against target: 39 lines (+12/-0)
3 files modified
storm/tests/infoheritance.txt (+4/-0)
storm/tests/tutorial.txt (+5/-0)
storm/tests/zope/README.txt (+3/-0)
To merge this branch: bzr merge lp:~cjwatson/storm/doctest-cleanup
Reviewer Review Type Date Requested Status
Kristian Glass (community) Approve
Ioana Lasc (community) Approve
Storm Developers Pending
Review via email: mp+384530@code.launchpad.net

Commit message

Clean up a bit more carefully in doctests.

Description of the change

This avoids problems if they're run in a different order.

To post a comment you must log in.
Revision history for this message
Ioana Lasc (ilasc) wrote :

LGTM

review: Approve
Revision history for this message
Kristian Glass (doismellburning) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'storm/tests/infoheritance.txt'
2--- storm/tests/infoheritance.txt 2019-08-12 17:07:08 +0000
3+++ storm/tests/infoheritance.txt 2020-05-26 10:10:15 +0000
4@@ -277,4 +277,8 @@
5 implemented using inheritance.
6
7
8+==== Clean up ====
9+
10+ >>> Person._storm_property_registry.clear()
11+
12 ## vim:ts=4:sw=4:et:ft=moin1_5
13
14=== modified file 'storm/tests/tutorial.txt'
15--- storm/tests/tutorial.txt 2019-08-12 17:07:08 +0000
16+++ storm/tests/tutorial.txt 2020-05-26 10:10:15 +0000
17@@ -958,4 +958,9 @@
18 list.
19
20
21+==== Clean up ====
22+
23+ >>> Currency._storm_property_registry.clear()
24+ >>> Country._storm_property_registry.clear()
25+
26 ## vim:ts=4:sw=4:et:ft=moin1_5
27
28=== modified file 'storm/tests/zope/README.txt'
29--- storm/tests/zope/README.txt 2020-05-19 09:02:51 +0000
30+++ storm/tests/zope/README.txt 2020-05-26 10:10:15 +0000
31@@ -342,6 +342,9 @@
32 The End
33 -------
34
35+ >>> Team._storm_property_registry.clear()
36+ >>> TeamMembership._storm_property_registry.clear()
37+ >>> Person._storm_property_registry.clear()
38 >>> transaction.abort()
39 >>> zstorm._reset()
40

Subscribers

People subscribed via source and target branches

to status/vote changes: