From 32a928338b12d0bcf6b911d96849b9585dd946df 2017-11-03 11:21:10 From: Thomas Kluyver Date: 2017-11-03 11:21:10 Subject: [PATCH] Explicitly use posixpath for test os.path is something else on Windows --- 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):