From 9842c4959b0aab4411a3e6c27fc655b2b7619965 Mon Sep 17 00:00:00 2001 From: Christopher Lane Date: Tue, 28 Jan 2025 12:53:02 -0500 Subject: [PATCH] fix: Undefined variable The later examples used the same `josh` local variable when it has been assigned to `self.josh`. `josh` does not exist in scope. --- docs/build/html/_sources/usage.rst.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/build/html/_sources/usage.rst.txt b/docs/build/html/_sources/usage.rst.txt index d3d2109..bd09d37 100644 --- a/docs/build/html/_sources/usage.rst.txt +++ b/docs/build/html/_sources/usage.rst.txt @@ -149,7 +149,7 @@ Here's an example: def set_up(self): self.josh = Person('Josh', 'Gilder') - self.account = Account(josh) + self.account = Account(self.josh) self.account.open() def test_account_deposit(self): @@ -173,7 +173,7 @@ Similarly, we can provide a **tear_down()** method to clean up after the test me def set_up(self): self.josh = Person('Josh', 'Gilder') - self.account = Account(josh) + self.account = Account(self.josh) self.account.open() def tear_down(self):