Tighten up the use of item and nwdoc objects in editor class

This commit is contained in:
Veronica K. B. Olsen
2021-04-25 23:46:09 +02:00
parent e7102725bd
commit 5ee39d7ecc
3 changed files with 40 additions and 43 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ def testCoreDocument_LoadSave(monkeypatch, dummyGUI, nwMinimal):
assert theDoc.getError() == "OSError"
# Saving with no handle
theDoc.clearDocument()
theDoc._docHandle = None
assert not theDoc.writeDocument(theText)
# Delete the last document