We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ab2939 commit 4b4d660Copy full SHA for 4b4d660
Lib/test/test_code_module.py
@@ -47,7 +47,7 @@ def test_ps1(self):
47
self.console.interact()
48
output = ''.join(''.join(call[1]) for call in self.stdout.method_calls)
49
self.assertIn('>>> ', output)
50
- self.assertFalse(hasattr(self.sysmod, 'ps1'))
+ self.assertNotHasAttr(self.sysmod, 'ps1')
51
52
self.infunc.side_effect = [
53
"import code",
@@ -69,7 +69,7 @@ def test_ps2(self):
69
70
71
self.assertIn('... ', output)
72
- self.assertFalse(hasattr(self.sysmod, 'ps2'))
+ self.assertNotHasAttr(self.sysmod, 'ps2')
73
74
75
0 commit comments