summaryrefslogtreecommitdiff
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2009-01-15 09:09:13 +0000
committerKristján Valur Jónsson <kristjan@ccpgames.com>2009-01-15 09:09:13 +0000
commit8adc0b54d4f995ff739967fdc70d6a6e53ac1f90 (patch)
tree7ccbe991f00ef50341d32c870cf830847a52336b /Lib/test/test_os.py
parent018760e3dc7c7f30cc4d232140cc62bd8b10b1fb (diff)
downloadcpython-git-8adc0b54d4f995ff739967fdc70d6a6e53ac1f90.tar.gz
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.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index c89a23f8d6..4702e7c192 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -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"):