Skip to content

Commit

Permalink
Fix tests that used old imp semantics for returning top level package.
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenthompson committed Aug 15, 2017
1 parent 805c588 commit 98ab937
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_cppimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

2 comments on commit 98ab937

@evertheylen
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird, I thought I did run the tests ;)

@tbenthompson
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=)
No worries! Took all of 30 seconds.

Please sign in to comment.