mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Fix recently introduced test cases.
For datetime, gentoo didn't seem to mind the %e format for strftime. So, we just excercise those instead making sure that we don't crash. For test_os, two cases were incorrect.
This commit is contained in:
parent
018760e3dc
commit
8adc0b54d4
2 changed files with 14 additions and 5 deletions
|
@ -559,11 +559,11 @@ class TestInvalidFD(unittest.TestCase):
|
|||
|
||||
def test_fchown(self):
|
||||
if hasattr(os, "fchown"):
|
||||
self.assertRaises(OSError, os.fchmod, 10, -1, -1)
|
||||
self.assertRaises(OSError, os.fchown, 10, -1, -1)
|
||||
|
||||
def test_fpathconf(self):
|
||||
if hasattr(os, "fpathconf"):
|
||||
self.assertRaises(OSError, os.fpathconf, 10, "foo")
|
||||
self.assertRaises(OSError, os.fpathconf, 10, "PC_FILESIZEBITS")
|
||||
|
||||
def test_ftruncate(self):
|
||||
if hasattr(os, "ftruncate"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue