FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update test.support from CPython 3.11.2 by youknowone · Pull Request #4537 · RustPython/RustPython · GitHub

Update test.support from CPython 3.11.2 - #4537

Merged
youknowone merged 5 commits into
RustPython:mainfrom
youknowone:lib-support
Feb 24, 2023
Merged

Update test.support from CPython 3.11.2#4537
youknowone merged 5 commits into
RustPython:mainfrom
youknowone:lib-support

Conversation

Comment thread Lib/test/test_support.py Outdated
import_helper.import_module, "foo")

# TODO: RUSTPYTHON
@unittest.expectedFailure

Copy link
Copy Markdown
Member Author

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 Quality

broken due to #4540

Comment thread Lib/test/test_support.py Outdated
support.check_syntax_error(self, "x=1")

# TODO: RUSTPYTHON
@unittest.expectedFailure

Copy link
Copy Markdown
Member Author

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 Quality

broken due to #4540

youknowone force-pushed the lib-support branch 2 times, most recently from 5ad9566 to 3e50134 Compare February 23, 2023 10:43
youknowone marked this pull request as ready for review February 23, 2023 10:43
Comment thread Lib/test/test_support.py Outdated
Comment on lines +702 to +706
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_has_strftime_extensions(self):
if support.is_emscripten or sys.platform == "win32":
self.assertFalse(support.has_strftime_extensions)
else:
self.assertTrue(support.has_strftime_extensions)

Copy link
Copy Markdown
Contributor

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 Quality

support.has_strftime_extensions will always be False when sys.platform == "win32".

I suggest using the os-dependent version:

def test_whatever(self):
    ...

# TODO: RUSTPYTHON
if sys.platform != "win32":
    # TODO: RUSTPYTHON
    test_whatever = unittest.expectedFailure(test_whatever)

Comment on lines +546 to +553
# Does strftime() support glibc extension like '%4Y'?
has_strftime_extensions = False
if sys.platform != "win32":
# bpo-47037: Windows debug builds crash with "Debug Assertion Failed"
try:
has_strftime_extensions = time.strftime("%4Y") != "%4Y"
except ValueError:
pass

Copy link
Copy Markdown
Contributor

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 Quality

@itsankitkp This is probably what I was looking for in #4474.

if _buggy_ucrt is None:
if(sys.platform == 'win32' and
locale.getdefaultlocale()[1] == 'cp65001' and
locale.getencoding() == 'cp65001' and

Copy link
Copy Markdown
Contributor

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 Quality

This is blocked on #4155.

youknowone requested a review from fanninpm February 23, 2023 17:41

fanninpm left a comment

Copy link
Copy Markdown
Contributor

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 Quality

LGTM.

youknowone merged commit cfc2e3e into RustPython:main Feb 24, 2023
youknowone deleted the lib-support branch February 24, 2023 01:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL