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

ttymode, ttymode_yield should be private #4275

Closed
olleolleolle opened this issue Nov 10, 2016 · 1 comment
Closed

ttymode, ttymode_yield should be private #4275

olleolleolle opened this issue Nov 10, 2016 · 1 comment
Milestone

Comments

@olleolleolle
Copy link
Member

olleolleolle commented Nov 10, 2016

JRuby exposes more parts of File as public instance methods than MRI does.

These two are made public in JRuby:

  • ttymode
  • ttymode_yield

Assumptions in FakeFS about that makes its asserts not pass. Update: FakeFS v0.10.0 changed it assumptions.

Environment

  • jruby 9.1.6.0 (2.3.1) 2016-11-09 0150a76 Java HotSpot(TM) 64-Bit Server VM 24.76-b04 on 1.7.0_76-b13 +jit [linux-x86_64]
  • Operating system: linux-x86_64 on Travis

Other relevant info you may wish to add:

Expected Behavior

File.instance_methods should exclude ttymode and ttymode_yield.

The test results in https://travis-ci.org/fakefs/fakefs/jobs/174750880 should not fail on ttymode_yield and ttymode

  • MRI has the above methods marked private (I think)
  • Here's a FakeFS test-case that checks File.instance_methods

Actual Behavior

@olleolleolle
Copy link
Member Author

Thank you, @kares!

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

No branches or pull requests

2 participants