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

Changed error thrown by Dir.entries method from ENOENT to ENOTDIR #4814

Closed
wants to merge 2 commits into from
Closed

Changed error thrown by Dir.entries method from ENOENT to ENOTDIR #4814

wants to merge 2 commits into from

Conversation

walerian777
Copy link

So it is now consistent with MRI.
Resolves #3840.

@@ -44,7 +44,7 @@ def test_seek
end

def test_nodir
assert_raise(Errno::ENOENT) { Dir.open(@nodir) }
assert_raise(Errno::ENOTDIR) { Dir.open(@nodir) }
Copy link
Member

Choose a reason for hiding this comment

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

guess, these hasn't been imported for a while.
could you please confirm the test is updated at MRI's for Ruby 2.3 / 2.4 ?

Copy link
Member

Choose a reason for hiding this comment

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

I checked this test all the way up to current MRI trunk and it is still ENOENT.

@kares kares added this to the Invalid or Duplicate milestone Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants