[Python-checkins] CVS: python/dist/src/Lib/test test_os.py,1.1,1.2
Fred L. Drake
fdrake@users.sourceforge.net
Tue, 17 Jul 2001 14:56:03 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv17057
Modified Files:
test_os.py
Log Message:
Remove a couple of lines from the test that proved not to be portable to
all platforms that offer tempnam().
Index: test_os.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_os.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** test_os.py 2001/07/17 20:52:51 1.1
--- test_os.py 2001/07/17 21:56:01 1.2
***************
*** 33,41 ****
name = os.tempnam(TESTFN)
- self.assert_(os.path.dirname(name) == TESTFN)
self.check_tempfile(name)
name = os.tempnam(TESTFN, "pfx")
- self.assert_(os.path.dirname(name) == TESTFN)
self.assert_(os.path.basename(name)[:3] == "pfx")
self.check_tempfile(name)
--- 33,39 ----