Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
bda7f98e
Commit
bda7f98e
authored
May 28, 2006
by
Philipp von Weitershausen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add BBB markers and avoid tests to trigger deprecation warnings.
parent
7a4a610b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
1 deletion
+43
-1
lib/python/TAL/tests/test_files.py
lib/python/TAL/tests/test_files.py
+1
-1
lib/python/TAL/tests/test_htmltalparser.py
lib/python/TAL/tests/test_htmltalparser.py
+10
-0
lib/python/TAL/tests/test_sourcepos.py
lib/python/TAL/tests/test_sourcepos.py
+10
-0
lib/python/TAL/tests/test_talinterpreter.py
lib/python/TAL/tests/test_talinterpreter.py
+12
-0
lib/python/TAL/tests/test_xmlparser.py
lib/python/TAL/tests/test_xmlparser.py
+10
-0
No files found.
lib/python/TAL/tests/test_files.py
View file @
bda7f98e
...
...
@@ -8,7 +8,7 @@ import glob
from
TAL.tests
import
utils
import
unittest
from
TAL
import
runtest
from
zope.tal
import
runtest
class
FileTestCase
(
unittest
.
TestCase
):
...
...
lib/python/TAL/tests/test_htmltalparser.py
View file @
bda7f98e
...
...
@@ -21,8 +21,18 @@ from TAL.tests import utils
import
unittest
# BBB 2005/05/01 -- to be changed after 12 months
# ignore deprecation warnings on import for now
import
warnings
showwarning
=
warnings
.
showwarning
warnings
.
showwarning
=
lambda
*
a
,
**
k
:
None
# this old import should remain here until the TAL package is
# completely removed, so that API backward compatibility is properly
# tested
from
TAL
import
HTMLTALParser
from
TAL.TALDefs
import
TAL_VERSION
,
TALError
,
METALError
# restore warning machinery
warnings
.
showwarning
=
showwarning
class
TestCaseBase
(
unittest
.
TestCase
):
...
...
lib/python/TAL/tests/test_sourcepos.py
View file @
bda7f98e
...
...
@@ -6,10 +6,20 @@ import unittest
from
StringIO
import
StringIO
# BBB 2005/05/01 -- to be changed after 12 months
# ignore deprecation warnings on import for now
import
warnings
showwarning
=
warnings
.
showwarning
warnings
.
showwarning
=
lambda
*
a
,
**
k
:
None
# this old import should remain here until the TAL package is
# completely removed, so that API backward compatibility is properly
# tested
from
TAL.HTMLTALParser
import
HTMLTALParser
from
TAL.TALInterpreter
import
TALInterpreter
from
TAL.TALGenerator
import
TALGenerator
from
TAL.DummyEngine
import
DummyEngine
# restore warning machinery
warnings
.
showwarning
=
showwarning
page1
=
'''<html metal:use-macro="main"><body>
...
...
lib/python/TAL/tests/test_talinterpreter.py
View file @
bda7f98e
...
...
@@ -21,12 +21,24 @@ import unittest
from
StringIO
import
StringIO
# BBB 2005/05/01 -- to be changed after 12 months
# ignore deprecation warnings on import for now
import
warnings
showwarning
=
warnings
.
showwarning
warnings
.
showwarning
=
lambda
*
a
,
**
k
:
None
# this old import should remain here until the TAL package is
# completely removed, so that API backward compatibility is properly
# tested
from
TAL.TALDefs
import
METALError
,
I18NError
from
TAL.HTMLTALParser
import
HTMLTALParser
from
TAL.TALParser
import
TALParser
from
TAL.TALInterpreter
import
TALInterpreter
from
TAL.DummyEngine
import
DummyEngine
,
DummyTranslationService
from
TAL.TALInterpreter
import
interpolate
# restore warning machinery
warnings
.
showwarning
=
showwarning
from
TAL.tests
import
utils
from
zope.i18nmessageid
import
Message
...
...
lib/python/TAL/tests/test_xmlparser.py
View file @
bda7f98e
...
...
@@ -7,7 +7,17 @@ import sys
from
TAL.tests
import
utils
import
unittest
# BBB 2005/05/01 -- to be changed after 12 months
# ignore deprecation warnings on import for now
import
warnings
showwarning
=
warnings
.
showwarning
warnings
.
showwarning
=
lambda
*
a
,
**
k
:
None
# this old import should remain here until the TAL package is
# completely removed, so that API backward compatibility is properly
# tested
from
TAL
import
XMLParser
# restore warning machinery
warnings
.
showwarning
=
showwarning
class
EventCollector
(
XMLParser
.
XMLParser
):
...
...
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