summaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/functionalities/command_source
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-01-02 19:26:05 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-01-02 19:26:05 +0000
commit14f1b3e8826ce43b978db93a62d1166055db5394 (patch)
tree0a00ad8d3498783fe0193f3b656bca17c4c8697d /packages/Python/lldbsuite/test/functionalities/command_source
parent4ee8c119c71a06dcad1e0fecc8c675e480e59337 (diff)
Notes
Diffstat (limited to 'packages/Python/lldbsuite/test/functionalities/command_source')
-rw-r--r--packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py7
-rw-r--r--packages/Python/lldbsuite/test/functionalities/command_source/my.py1
2 files changed, 5 insertions, 3 deletions
diff --git a/packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py b/packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py
index 0d4eb0776e79e..cee9bd2721895 100644
--- a/packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py
+++ b/packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py
@@ -7,13 +7,14 @@ See also http://llvm.org/viewvc/llvm-project?view=rev&revision=109673.
from __future__ import print_function
-
-import os, sys
+import os
+import sys
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
+
class CommandSourceTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
@@ -35,4 +36,4 @@ class CommandSourceTestCase(TestBase):
import datetime
self.expect(result.GetOutput(), "script my.date() runs successfully",
exe=False,
- substrs = [str(datetime.date.today())])
+ substrs=[str(datetime.date.today())])
diff --git a/packages/Python/lldbsuite/test/functionalities/command_source/my.py b/packages/Python/lldbsuite/test/functionalities/command_source/my.py
index cb2fd012e4bdb..bd97fda3cbbf1 100644
--- a/packages/Python/lldbsuite/test/functionalities/command_source/my.py
+++ b/packages/Python/lldbsuite/test/functionalities/command_source/my.py
@@ -1,5 +1,6 @@
from __future__ import print_function
+
def date():
import datetime
today = datetime.date.today()