Skip to content

Re-enable NSKIP012 - #862

Merged
ppenna merged 1 commit into
nanvix/v3.12.3from
nskip/012
Aug 5, 2026
Merged

ppenna merged 1 commit into
nanvix/v3.12.3from
nskip/012

Conversation

@ada-x64

@ada-x64 ada-x64 commented Jul 31, 2026

Copy link
Copy Markdown

Closes #480

What

Remove NSKIP012 guard on test_reprlib. (support-level rmdir/errno swallows left for a follow-up.)

Why

rmdir cleanup no longer errors; the decorator is stale.
Verified the full lifecycle on Linux.

Copilot AI lite review requested due to automatic review settings July 31, 2026 22:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR re-enables LongReprTest in Lib/test/test_reprlib.py by removing the Nanvix-specific NSKIP012 module guard, based on the claim that the rmdir cleanup behavior that motivated the skip is now fixed.

Changes:

  • Remove the @unittest.skipIf(support.is_nanvix, ...) NSKIP012 skip from LongReprTest in test_reprlib.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Lib/test/test_reprlib.py

# NSKIP012 https://github.com/nanvix/cpython/issues/480
@unittest.skipIf(support.is_nanvix, "NSKIP012: rmtree/rmdir returns ENOSYS")
class LongReprTest(unittest.TestCase):
Copilot AI review requested due to automatic review settings August 3, 2026 14:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (1)

Lib/test/test_reprlib.py:589

  • With the NSKIP012 decorator removed, LongReprTest will now run on Nanvix. However, this test’s tearDown() uses os.rmdir() directly (not test.support.os_helper.rmdir/rmtree), and the test support helpers still document/swallow errno.ENOSYS for Nanvix rmdir() (see Lib/test/support/os_helper.py). If standalone Nanvix still returns ENOSYS, this test will fail during teardown rather than being skipped.

Consider narrowing the guard to support.is_nanvix_standalone (so hosted Nanvix is still exercised), or alternatively reworking tearDown() to use os_helper.rmdir/rmtree so cleanup can tolerate ENOSYS.


class LongReprTest(unittest.TestCase):
    longname = 'areallylongpackageandmodulenametotestreprtruncation'

@ada-x64
ada-x64 marked this pull request as ready for review August 3, 2026 14:41
rmdir cleanup no longer errors; the decorator is stale.
Copilot AI review requested due to automatic review settings August 5, 2026 18:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review details

Suppressed comments (1)

Lib/test/test_reprlib.py:589

  • Removing the NSKIP012 guard makes LongReprTest run on Nanvix, but this test still requires a working os.rmdir()/os.mkdir() lifecycle (setUp calls shutil.rmtree(..., ignore_errors=True) then os.mkdir(), and tearDown uses os.rmdir directly). If Nanvix standalone still returns ENOSYS for rmdir (the original NSKIP012 failure mode), this will error in setUp/tearDown rather than being isolated to regrtest cleanup.

If the intent is only to re-enable hosted Nanvix (where support._force_run swallows errno 88 in regrtest teardown), consider restoring the skip but narrowing it to standalone only.


class LongReprTest(unittest.TestCase):
    longname = 'areallylongpackageandmodulenametotestreprtruncation'
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@ppenna
ppenna merged commit c733a3a into nanvix/v3.12.3 Aug 5, 2026
13 checks passed
@ppenna
ppenna deleted the nskip/012 branch August 5, 2026 19:10
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.

[NSKIP012] rmtree/rmdir cleanup failures on Nanvix (ENOSYS standalone, errno 88 hosted)

3 participants