summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2014-01-03 22:55:16 +0000
committerJohn R. Lenton <jlenton@gmail.com>2014-01-03 22:55:16 +0000
commit97334c85d0b53ef1648eb76ec6e9e2b1efab1f97 (patch)
treed10f6b6b7ca3394e6f7dc31ca55e0df2b39abe02 /tests
parent25f417c08c2cdb5c4a7564d1e69766c0448d7984 (diff)
parentb7aa72710ee6798c6d2bc2632be24206e526fc1e (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'tests')
-rwxr-xr-xtests/basics/run-tests2
-rw-r--r--tests/basics/tests/import1a.py2
-rw-r--r--tests/basics/tests/import1b.py1
3 files changed, 4 insertions, 1 deletions
diff --git a/tests/basics/run-tests b/tests/basics/run-tests
index 1b027c3e9..72e69c2d8 100755
--- a/tests/basics/run-tests
+++ b/tests/basics/run-tests
@@ -11,7 +11,7 @@ namefailed=
for infile in tests/*.py
do
- basename=`basename $infile .c`
+ basename=`basename $infile .py`
outfile=${basename}.out
expfile=${basename}.exp
diff --git a/tests/basics/tests/import1a.py b/tests/basics/tests/import1a.py
new file mode 100644
index 000000000..16b2d4d30
--- /dev/null
+++ b/tests/basics/tests/import1a.py
@@ -0,0 +1,2 @@
+import import1b
+print(import1b.var)
diff --git a/tests/basics/tests/import1b.py b/tests/basics/tests/import1b.py
new file mode 100644
index 000000000..80479088f
--- /dev/null
+++ b/tests/basics/tests/import1b.py
@@ -0,0 +1 @@
+var = 123