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

Win32ErrorTests from test_os.py #48216

Closed
rpetrov mannequin opened this issue Sep 25, 2008 · 6 comments
Closed

Win32ErrorTests from test_os.py #48216

rpetrov mannequin opened this issue Sep 25, 2008 · 6 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@rpetrov
Copy link
Mannequin

rpetrov mannequin commented Sep 25, 2008

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 = []

@rpetrov
Copy link
Mannequin Author

rpetrov mannequin commented Sep 25, 2008

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

Is the test correct ?

@BreamoreBoy
Copy link
Mannequin

BreamoreBoy mannequin commented Jun 26, 2010

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?

@BreamoreBoy
Copy link
Mannequin

BreamoreBoy mannequin commented Jul 27, 2010

Already fixed in 2.7, 3.1 and 3.2.

@BreamoreBoy BreamoreBoy mannequin closed this as completed Jul 27, 2010
@BreamoreBoy BreamoreBoy mannequin added the type-bug An unexpected behavior, bug, or error label Jul 27, 2010
@merwok
Copy link
Member

merwok commented Jul 27, 2010

Nice catch Roumen.

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

@BreamoreBoy
Copy link
Mannequin

BreamoreBoy mannequin commented Jul 27, 2010

Éric please see R69364.

@merwok
Copy link
Member

merwok commented Jul 27, 2010

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?).

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant