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
9054344d
Commit
9054344d
authored
Mar 02, 2001
by
Ka-Ping Yee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace literal '@test' with TESTFN.
parent
ca956e2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Lib/test/test_inspect.py
Lib/test/test_inspect.py
+6
-6
No files found.
Lib/test/test_inspect.py
View file @
9054344d
...
...
@@ -168,23 +168,23 @@ istest(inspect.istraceback, 'git.ex[2]')
istest
(
inspect
.
isframe
,
'mod.fr'
)
test
(
len
(
git
.
tr
)
==
2
,
'trace() length'
)
test
(
git
.
tr
[
0
][
1
:]
==
(
'@test'
,
9
,
'spam'
,
[
' eggs(b + d, c + f)
\
n
'
],
0
),
test
(
git
.
tr
[
0
][
1
:]
==
(
TESTFN
,
9
,
'spam'
,
[
' eggs(b + d, c + f)
\
n
'
],
0
),
'trace() row 1'
)
test
(
git
.
tr
[
1
][
1
:]
==
(
'@test'
,
18
,
'eggs'
,
[
' q = y / 0
\
n
'
],
0
),
test
(
git
.
tr
[
1
][
1
:]
==
(
TESTFN
,
18
,
'eggs'
,
[
' q = y / 0
\
n
'
],
0
),
'trace() row 2'
)
test
(
len
(
mod
.
st
)
>=
5
,
'stack() length'
)
test
(
mod
.
st
[
0
][
1
:]
==
(
'@test'
,
16
,
'eggs'
,
[
' st = inspect.stack()
\
n
'
],
0
),
(
TESTFN
,
16
,
'eggs'
,
[
' st = inspect.stack()
\
n
'
],
0
),
'stack() row 1'
)
test
(
mod
.
st
[
1
][
1
:]
==
(
'@test'
,
9
,
'spam'
,
[
' eggs(b + d, c + f)
\
n
'
],
0
),
(
TESTFN
,
9
,
'spam'
,
[
' eggs(b + d, c + f)
\
n
'
],
0
),
'stack() row 2'
)
test
(
mod
.
st
[
2
][
1
:]
==
(
'@test'
,
43
,
'argue'
,
[
' spam(a, b, c)
\
n
'
],
0
),
(
TESTFN
,
43
,
'argue'
,
[
' spam(a, b, c)
\
n
'
],
0
),
'stack() row 3'
)
test
(
mod
.
st
[
3
][
1
:]
==
(
'@test'
,
39
,
'abuse'
,
[
' self.argue(a, b, c)
\
n
'
],
0
),
(
TESTFN
,
39
,
'abuse'
,
[
' self.argue(a, b, c)
\
n
'
],
0
),
'stack() row 4'
)
# row 4 is in test_inspect.py
...
...
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