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
5625de14
Commit
5625de14
authored
Aug 17, 2006
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make unit tests pass: replace apply() and adapt to different attribute message.
parent
b36eb242
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Lib/sqlite3/dbapi2.py
Lib/sqlite3/dbapi2.py
+3
-3
Lib/sqlite3/test/userfunctions.py
Lib/sqlite3/test/userfunctions.py
+1
-1
No files found.
Lib/sqlite3/dbapi2.py
View file @
5625de14
...
...
@@ -39,13 +39,13 @@ Time = datetime.time
Timestamp
=
datetime
.
datetime
def
DateFromTicks
(
ticks
):
return
apply
(
Date
,
time
.
localtime
(
ticks
)[:
3
])
return
Date
(
*
time
.
localtime
(
ticks
)[:
3
])
def
TimeFromTicks
(
ticks
):
return
apply
(
Time
,
time
.
localtime
(
ticks
)[
3
:
6
])
return
Time
(
*
time
.
localtime
(
ticks
)[
3
:
6
])
def
TimestampFromTicks
(
ticks
):
return
apply
(
Timestamp
,
time
.
localtime
(
ticks
)[:
6
])
return
Timestamp
(
*
time
.
localtime
(
ticks
)[:
6
])
version_info
=
tuple
([
int
(
x
)
for
x
in
version
.
split
(
"."
)])
sqlite_version_info
=
tuple
([
int
(
x
)
for
x
in
sqlite_version
.
split
(
"."
)])
...
...
Lib/sqlite3/test/userfunctions.py
View file @
5625de14
...
...
@@ -280,7 +280,7 @@ class AggregateTests(unittest.TestCase):
cur
.
execute
(
"select nostep(t) from test"
)
self
.
fail
(
"should have raised an AttributeError"
)
except
AttributeError
,
e
:
self
.
failUnlessEqual
(
e
.
args
[
0
],
"
AggrNoStep instance
has no attribute 'step'"
)
self
.
failUnlessEqual
(
e
.
args
[
0
],
"
'AggrNoStep' object
has no attribute 'step'"
)
def
CheckAggrNoFinalize
(
self
):
cur
=
self
.
con
.
cursor
()
...
...
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