mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Fix a few tests by either fixing the test cases or adding py__bool__ functions to objects that should have such a method.
This commit is contained in:
@@ -92,7 +92,7 @@ class TestRegression(TestCase):
|
||||
class C:
|
||||
pass
|
||||
|
||||
variable = f or C""")
|
||||
variable = f if random.choice([0, 1]) else C""")
|
||||
defs = Script(source, column=3).goto_definitions()
|
||||
defs = sorted(defs, key=lambda d: d.line)
|
||||
self.assertEqual([d.description for d in defs],
|
||||
|
||||
Reference in New Issue
Block a user