| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -20,7 +20,7 @@ | |
|
|
||
| from test.support import os_helper | ||
| from test.support import ( | ||
| STDLIB_DIR, is_jython, swap_attr, swap_item, cpython_only, is_emscripten, | ||
| STDLIB_DIR, swap_attr, swap_item, cpython_only, is_emscripten, | ||
| is_wasi) | ||
| from test.support.import_helper import ( | ||
| forget, make_legacy_pyc, unlink, unload, DirsOnSysPath, CleanImport) | ||
| Expand Down Expand Up | @@ -163,10 +163,7 @@ def test_import(self): | |
| def test_with_extension(ext): | ||
| # The extension is normally ".py", perhaps ".pyw". | ||
| source = TESTFN + ext | ||
| if is_jython: | ||
| pyc = TESTFN + "$py.class" | ||
| else: | ||
| pyc = TESTFN + ".pyc" | ||
| pyc = TESTFN + ".pyc" | ||
|
Comment thread
Copy link
Copy Markdown
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityI am removing Jython compat from tests, because there are lots and lots of new tests since 2.7 New syntax, new corner cases, etc. If Jython ever run our new suite, there will be a lot of things to fix / adapt on their side.
Sorry, something went wrong.
All reactions
|
||
|
|
||
| with open(source, "w", encoding='utf-8') as f: | ||
| print("# This tests Python's ability to import a", | ||
| Expand Down | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -329,7 +329,7 @@ def raises_oserror(*a): | |
|
|
||
| def test_java_ver(self): | ||
| res = platform.java_ver() | ||
|
Comment thread
Copy link
Copy Markdown
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityI am not touching platform.java_ver(), because this is a user-facing API.
Sorry, something went wrong.
All reactions
|
||
| if sys.platform == 'java': | ||
| if sys.platform == 'java': # Is never actually checked in CI | ||
| self.assertTrue(all(res)) | ||
|
|
||
| def test_win32_ver(self): | ||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityThis is not required, because there's @cpython_only decorator.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.