diff --git a/IPython/lib/tests/test_pretty.py b/IPython/lib/tests/test_pretty.py index 930156c..6d65743 100644 --- a/IPython/lib/tests/test_pretty.py +++ b/IPython/lib/tests/test_pretty.py @@ -408,10 +408,10 @@ def test_mappingproxy(): def test_function_pretty(): "Test pretty print of function" - # posixpath is a pure python function, its interface is consistent + # posixpath is a pure python module, its interface is consistent # across Python distributions - import os - nt.assert_equal(pretty.pretty(os.path.join), '') + import posixpath + nt.assert_equal(pretty.pretty(posixpath.join), '') # custom function def meaning_of_life(question=None):