From 9d36dab693343121413d84c9914254817b62e792 Mon Sep 17 00:00:00 2001 From: "Paul R. Tagliamonte" Date: Sun, 7 Apr 2013 09:54:53 -0400 Subject: [PATCH] Test importing things with dashes --- tests/native_tests/language.hy | 2 +- tests/resources/__init__.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/native_tests/language.hy b/tests/native_tests/language.hy index 8a4c40b..cd3e1b4 100644 --- a/tests/native_tests/language.hy +++ b/tests/native_tests/language.hy @@ -1,6 +1,6 @@ ; -(import-from tests.resources kwtest) +(import-from tests.resources kwtest function-with-a-dash) (import-from os.path exists isdir isfile) (import-as sys systest) (import sys) diff --git a/tests/resources/__init__.py b/tests/resources/__init__.py index b115480..bb532ec 100644 --- a/tests/resources/__init__.py +++ b/tests/resources/__init__.py @@ -2,3 +2,7 @@ def kwtest(*args, **kwargs): return kwargs + + +def function_with_a_dash(): + pass