Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9da5cb93
Commit
9da5cb93
authored
Jul 17, 2008
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kill test_macos
parent
4cdf572c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
43 deletions
+0
-43
Lib/test/test_macos.py
Lib/test/test_macos.py
+0
-43
No files found.
Lib/test/test_macos.py
deleted
100644 → 0
View file @
4cdf572c
import
unittest
import
MacOS
import
Carbon.File
from
test
import
test_support
import
os
TESTFN2
=
test_support
.
TESTFN
+
'2'
class
TestMacOS
(
unittest
.
TestCase
):
def
testOpenRF
(
self
):
try
:
fp
=
open
(
test_support
.
TESTFN
,
'w'
)
fp
.
write
(
'hello world
\
n
'
)
fp
.
close
()
rfp
=
MacOS
.
openrf
(
test_support
.
TESTFN
,
'*wb'
)
rfp
.
write
(
'goodbye world
\
n
'
)
rfp
.
close
()
fp
=
open
(
test_support
.
TESTFN
,
'r'
)
data
=
fp
.
read
()
fp
.
close
()
self
.
assertEquals
(
data
,
'hello world
\
n
'
)
rfp
=
MacOS
.
openrf
(
test_support
.
TESTFN
,
'*rb'
)
data
=
rfp
.
read
(
100
)
data2
=
rfp
.
read
(
100
)
rfp
.
close
()
self
.
assertEquals
(
data
,
'goodbye world
\
n
'
)
self
.
assertEquals
(
data2
,
''
)
finally
:
os
.
unlink
(
test_support
.
TESTFN
)
def
test_main
():
test_support
.
run_unittest
(
TestMacOS
)
if
__name__
==
'__main__'
:
test_main
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment