mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Replace Script by timedelta in the test
This commit is contained in:
@@ -33,10 +33,10 @@ def test_exclude_builtin_modules(Script):
|
|||||||
d1 = datetime.now()
|
d1 = datetime.now()
|
||||||
d2 = datetime.now()
|
d2 = datetime.now()
|
||||||
''', [(2, 14), (3, 14)]),
|
''', [(2, 14), (3, 14)]),
|
||||||
('''from jedi import Script
|
('''from datetime import timedelta
|
||||||
s1 = Script(code='')
|
t1 = timedelta(seconds=1)
|
||||||
s2 = Script(code='')
|
t2 = timedelta(seconds=2)
|
||||||
''', [(2, 12), (3, 12)])
|
''', [(2, 15), (3, 15)])
|
||||||
])
|
])
|
||||||
def test_references_scope(Script, code, places):
|
def test_references_scope(Script, code, places):
|
||||||
if not code:
|
if not code:
|
||||||
|
|||||||
Reference in New Issue
Block a user