             return
         }
         didCatchExpectedError = false
+        // Trigger the error code path that is taken when no temporary archive
+        // can be created during replacement
         replacementArchive.memoryFile = nil
         do {
             try emptyArchive?.replaceCurrentArchiveWithArchive(replacementArchive)

            didCatchExpectedError = true
        }
        XCTAssert(didCatchExpectedError)
    }

    func testMemoryArchiveErrorConditions() {

            }
        }
        XCTAssert(didCatchExpectedError)
        let emptyArchive = Archive(accessMode: .create)
        let data = Data.makeRandomData(size: 1024)
        guard let replacementArchive = Archive(data: data, accessMode: .create) else {
