Skip to content

Win32ErrorTests from test_os.py #48216

Closed
Closed

Description

@rpetrov
mannequin
BPO 3966
Nosy @merwok

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2010-07-27.20:54:10.230>
created_at = <Date 2008-09-25.18:35:49.708>
labels = ['type-bug']
title = 'Win32ErrorTests from test_os.py'
updated_at = <Date 2010-07-27.22:28:34.183>
user = 'https://bugs.python.org/rpetrov'

bugs.python.org fields:

activity = <Date 2010-07-27.22:28:34.183>
actor = 'eric.araujo'
assignee = 'none'
closed = True
closed_date = <Date 2010-07-27.20:54:10.230>
closer = 'BreamoreBoy'
components = []
creation = <Date 2008-09-25.18:35:49.708>
creator = 'rpetrov'
dependencies = []
files = []
hgrepos = []
issue_num = 3966
keywords = []
message_count = 6.0
messages = ['73807', '108713', '111730', '111731', '111738', '111739']
nosy_count = 3.0
nosy_names = ['eric.araujo', 'rpetrov', 'BreamoreBoy']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue3966'
versions = []

Activity

  1. rpetrov commented on Sep 25, 2008

    rpetrovmannequin
    MannequinAuthor

    test method - call os.method
    test_mkdir(self) - os.chdir
    test_access(self) - os.utime
    test_chmod(self) - os.utime

    Is the test correct ?

  2. BreamoreBoy commented on Jun 26, 2010

    BreamoreBoymannequin
    Mannequin

    Here is the code from test_os.py for Python 2.6.5.

    def test_mkdir(self):
        self.assertRaises(WindowsError, os.chdir, test_support.TESTFN)
    def test_access(self):
        self.assertRaises(WindowsError, os.utime, test_support.TESTFN, 0)
    def test_chmod(self):
        self.assertRaises(WindowsError, os.utime, test_support.TESTFN, 0)

    The OP is saying shouldn't there be calls to os.mkdir, os.access and os.chmod respectively?

  3. BreamoreBoy commented on Jul 27, 2010

    BreamoreBoymannequin
    Mannequin

    Already fixed in 2.7, 3.1 and 3.2.

  4. merwok commented on Jul 27, 2010

    @merwok
    Member

    Nice catch Roumen.

    Mark, can you tell which revisions the bug was fixed in? (writing “rNNN” or “rev NNN” will generate appropriate links) Thanks.

  5. BreamoreBoy commented on Jul 27, 2010

    BreamoreBoymannequin
    Mannequin

    Éric please see R69364.

  6. merwok commented on Jul 27, 2010

    @merwok
    Member

    Thanks. I trust you that the other branches are fixed too; in future messages on other bugs reports, kindly include all revisions involved.

    I’ve learned that Roundup does not recognize an upper-case R (have I already said I hate implicit markup?).

  7. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions