Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #1908, use os.path.normcase for safe filename comparisons #1909

Merged
merged 2 commits into from Jun 11, 2012

Conversation

jstenar
Copy link
Member

@jstenar jstenar commented Jun 11, 2012

No description provided.

@@ -58,7 +58,7 @@ def pyfile(fname):


def match_pyfiles(f1, f2):
nt.assert_equal(pyfile(f1), pyfile(f2))
nt.assert_equal(os.path.normcase(pyfile(f1)), os.path.normcase(pyfile(f2)))
Copy link
Member

Choose a reason for hiding this comment

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

Why not put the normcase call inside pyfile? That way, all tests that call it will benefit automatically...

@fperez
Copy link
Member

fperez commented Jun 11, 2012

Test results for commit a353316 merged into master
Platform: linux2

  • python2.7: OK
  • python3.2: OK (libraries not available: cython matplotlib pymongo rpy2 wx wx.aui)

Not available for testing:

@takluyver
Copy link
Member

Test results for commit c685172 merged into master
Platform: linux2

  • python2.7: OK (libraries not available: rpy2 tornado)
  • python3.1: OK (libraries not available: cython matplotlib numpy pymongo qt rpy2 wx wx.aui zmq)
  • python3.2: OK (libraries not available: cython pymongo rpy2 wx wx.aui)

Not available for testing: python2.6

@fperez
Copy link
Member

fperez commented Jun 11, 2012

Great, this looks clean. Thanks for the fixes, merging now!

fperez added a commit that referenced this pull request Jun 11, 2012
Use os.path.normcase for safe filename comparisons.

Closes #1908.
@fperez fperez merged commit 4af3a6a into ipython:master Jun 11, 2012
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Use os.path.normcase for safe filename comparisons.

Closes ipython#1908.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants