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
b94034a5
Commit
b94034a5
authored
Apr 10, 2005
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reenabled the ZClass tests
parent
cfc495eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
122 deletions
+4
-122
lib/python/ZClasses/tests.py
lib/python/ZClasses/tests.py
+4
-122
No files found.
lib/python/ZClasses/tests.py
View file @
b94034a5
...
...
@@ -44,131 +44,13 @@ def tearDown27(test):
transaction
.
abort
()
test
.
globs
[
'db'
].
close
()
# XXX Two tests are disable because they're failing on Zope trunk;
# XXX they didn't fail on Jim's branch:
#
# C:\Code\zt>\python23\python.exe test.py ZClas
# Running unit tests from C:\Code\zt\lib\python
# ======================================================================
# FAIL: Doctest: ZClass.txt
# ----------------------------------------------------------------------
# Traceback (most recent call last):
# File "C:\Code\zt\lib\python\zope\testing\doctest.py", line 2102, in runTest
# raise self.failureException(self.format_failure(new.getvalue()))
# AssertionError: Failed doctest test for ZClass.txt
# File "C:\Code\zt\lib\python\ZClasses\ZClass.txt", line 0
#
# ----------------------------------------------------------------------
# File "C:\Code\zt\lib\python\ZClasses\ZClass.txt", line 88, in ZClass.txt
# Failed example:
# print app2.c2.x, app2.c2.y, app2.c2.eek(), '!'
# Exception raised:
# Traceback (most recent call last):
# File "C:\Code\zt\lib\python\zope\testing\doctest.py", line 1315, in __run
# compileflags, 1) in test.globs
# File "<doctest ZClass.txt[35]>", line 1, in ?
# print app2.c2.x, app2.c2.y, app2.c2.eek(), '!'
# File "C:\Code\zt\lib\python\AccessControl\PermissionMapping.py", line 150, in __call__
# return apply(self, args, kw)
# File "C:\Code\zt\lib\python\Shared\DC\Scripts\Bindings.py", line 311, in __call__
# return self._bindAndExec(args, kw, None)
# File "C:\Code\zt\lib\python\Shared\DC\Scripts\Bindings.py", line 348, in _bindAndExec
# return self._exec(bound_data, args, kw)
# File "C:\Code\zt\lib\python\Products\PythonScripts\PythonScript.py", line 323, in _exec
# result = f(*args, **kw)
# File "Script (Python)", line 1, in eek
# Unauthorized: You are not allowed to access 'x' in this context
# ----------------------------------------------------------------------
# File "C:\Code\zt\lib\python\ZClasses\ZClass.txt", line 110, in ZClass.txt
# Failed example:
# c3.eek()
# Exception raised:
# Traceback (most recent call last):
# File "C:\Code\zt\lib\python\zope\testing\doctest.py", line 1315, in __run
# compileflags, 1) in test.globs
# File "<doctest ZClass.txt[42]>", line 1, in ?
# c3.eek()
# File "C:\Code\zt\lib\python\AccessControl\PermissionMapping.py", line 150, in __call__
# return apply(self, args, kw)
# File "C:\Code\zt\lib\python\Shared\DC\Scripts\Bindings.py", line 311, in __call__
# return self._bindAndExec(args, kw, None)
# File "C:\Code\zt\lib\python\Shared\DC\Scripts\Bindings.py", line 348, in _bindAndExec
# return self._exec(bound_data, args, kw)
# File "C:\Code\zt\lib\python\Products\PythonScripts\PythonScript.py", line 323, in _exec
# result = f(*args, **kw)
# File "Script (Python)", line 1, in eek
# Unauthorized: You are not allowed to access 'x' in this context
#
#
# ======================================================================
# FAIL: Doctest: 27.txt
# ----------------------------------------------------------------------
# Traceback (most recent call last):
# File "C:\Code\zt\lib\python\zope\testing\doctest.py", line 2102, in runTest
# raise self.failureException(self.format_failure(new.getvalue()))
# AssertionError: Failed doctest test for 27.txt
# File "C:\Code\zt\lib\python\ZClasses\27.txt", line 0
#
# ----------------------------------------------------------------------
# File "C:\Code\zt\lib\python\ZClasses\27.txt", line 16, in 27.txt
# Failed example:
# ac.eek()
# Exception raised:
# Traceback (most recent call last):
# File "C:\Code\zt\lib\python\zope\testing\doctest.py", line 1315, in __run
# compileflags, 1) in test.globs
# File "<doctest 27.txt[10]>", line 1, in ?
# ac.eek()
# File "C:\Code\zt\lib\python\AccessControl\PermissionMapping.py", line 150, in __call__
# return apply(self, args, kw)
# File "C:\Code\zt\lib\python\Shared\DC\Scripts\Bindings.py", line 311, in __call__
# return self._bindAndExec(args, kw, None)
# File "C:\Code\zt\lib\python\Shared\DC\Scripts\Bindings.py", line 348, in _bindAndExec
# return self._exec(bound_data, args, kw)
# File "C:\Code\zt\lib\python\Products\PythonScripts\PythonScript.py", line 323, in _exec
# result = f(*args, **kw)
# File "Script (Python)", line 1, in eek
# Unauthorized: You are not allowed to access 'x' in this context
# ----------------------------------------------------------------------
# File "C:\Code\zt\lib\python\ZClasses\27.txt", line 19, in 27.txt
# Failed example:
# ac.eek()
# Exception raised:
# Traceback (most recent call last):
# File "C:\Code\zt\lib\python\zope\testing\doctest.py", line 1315, in __run
# compileflags, 1) in test.globs
# File "<doctest 27.txt[12]>", line 1, in ?
# ac.eek()
# File "C:\Code\zt\lib\python\AccessControl\PermissionMapping.py", line 150, in __call__
# return apply(self, args, kw)
# File "C:\Code\zt\lib\python\Shared\DC\Scripts\Bindings.py", line 311, in __call__
# return self._bindAndExec(args, kw, None)
# File "C:\Code\zt\lib\python\Shared\DC\Scripts\Bindings.py", line 348, in _bindAndExec
# return self._exec(bound_data, args, kw)
# File "C:\Code\zt\lib\python\Products\PythonScripts\PythonScript.py", line 323, in _exec
# result = f(*args, **kw)
# File "Script (Python)", line 1, in eek
# Unauthorized: You are not allowed to access 'x' in this context
#
#
# ----------------------------------------------------------------------
# Ran 3 tests in 2.734s
#
# FAILED (failures=2)
def
test_suite
():
return
unittest
.
TestSuite
((
# To do:
# - Test working with old pickles
# - Test proper handling of __of__
# - Test export/import
doctest
.
DocFileSuite
(
"_pmc.txt"
,
setUp
=
setUp
,
tearDown
=
tearDown
),
## XXX
doctest.DocFileSuite("ZClass.txt", setUp=setUp, tearDown=tearDown),
## XXX
doctest.DocFileSuite("27.txt", tearDown=tearDown27,
## XXX
globs=dict(__file__=__file__),
## XXX
),
doctest
.
DocFileSuite
(
"ZClass.txt"
,
setUp
=
setUp
,
tearDown
=
tearDown
),
doctest
.
DocFileSuite
(
"27.txt"
,
tearDown
=
tearDown27
,
globs
=
dict
(
__file__
=
__file__
),
),
))
if
__name__
==
'__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