From 98ab93726376830b61fc00aeef48b819b71a1852 Mon Sep 17 00:00:00 2001 From: Ben Thompson Date: Tue, 15 Aug 2017 13:57:34 -0400 Subject: [PATCH] Fix tests that used old imp semantics for returning top level package. --- tests/test_cppimport.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_cppimport.py b/tests/test_cppimport.py index 31a6427..c061321 100644 --- a/tests/test_cppimport.py +++ b/tests/test_cppimport.py @@ -60,12 +60,12 @@ def test_mymodule(): module_tester(mymodule) def test_package_mymodule(): - apackage = cppimport.imp("apackage.mymodule") - module_tester(apackage.mymodule) + mymodule = cppimport.imp("apackage.mymodule") + module_tester(mymodule) def test_inner_package_mymodule(): - apackage = cppimport.imp("apackage.inner.mymodule") - module_tester(apackage.inner.mymodule) + mymodule = cppimport.imp("apackage.inner.mymodule") + module_tester(mymodule) def test_with_file_in_syspath(): orig_sys_path = copy.copy(sys.path)