Show More
@@ -242,15 +242,15 class TestAutoreload(Fixture): | |||||
242 | self.shell.run_code("second = MyClass(5)") |
|
242 | self.shell.run_code("second = MyClass(5)") | |
243 |
|
243 | |||
244 | for object_name in {'first', 'second'}: |
|
244 | for object_name in {'first', 'second'}: | |
245 |
self.shell.run_code("{object_name}.power(5)" |
|
245 | self.shell.run_code(f"{object_name}.power(5)") | |
246 | with nt.assert_raises(AttributeError): |
|
246 | with nt.assert_raises(AttributeError): | |
247 |
self.shell.run_code("{object_name}.cube()" |
|
247 | self.shell.run_code(f"{object_name}.cube()") | |
248 | with nt.assert_raises(AttributeError): |
|
248 | with nt.assert_raises(AttributeError): | |
249 |
self.shell.run_code("{object_name}.square()" |
|
249 | self.shell.run_code(f"{object_name}.square()") | |
250 |
self.shell.run_code("{object_name}.b" |
|
250 | self.shell.run_code(f"{object_name}.b") | |
251 |
self.shell.run_code("{object_name}.a" |
|
251 | self.shell.run_code(f"{object_name}.a") | |
252 | with nt.assert_raises(AttributeError): |
|
252 | with nt.assert_raises(AttributeError): | |
253 |
self.shell.run_code("{object_name}.toto" |
|
253 | self.shell.run_code(f"{object_name}.toto") | |
254 |
|
254 | |||
255 | def test_autoload_newly_added_objects(self): |
|
255 | def test_autoload_newly_added_objects(self): | |
256 | self.shell.magic_autoreload("3") |
|
256 | self.shell.magic_autoreload("3") |
General Comments 0
You need to be logged in to leave comments.
Login now