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
d9ca44c8
Commit
d9ca44c8
authored
Feb 21, 2004
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_install_product: Couldn't pass on Windows. Repaired.
parent
3f602492
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lib/python/OFS/tests/testProductInit.py
lib/python/OFS/tests/testProductInit.py
+6
-2
No files found.
lib/python/OFS/tests/testProductInit.py
View file @
d9ca44c8
...
...
@@ -38,9 +38,13 @@ products <<PRODUCTS2>>
</zodb_db>
"""
# CAUTION: A raw string must be used in the open() call. This is crucial
# so that if you happen to be on Windows, and are passed a path containing
# backslashes, the backslashes get treated *as* backslashes instead of as
# string escape codes.
dummy_product_init
=
"""
def initialize(context):
f=open('%s', 'w')
f=open(
r
'%s', 'w')
f.write('didit')
f.close()
misc_ = {'a':1}
...
...
@@ -124,7 +128,7 @@ class TestProductInit( unittest.TestCase ):
for
name
in
FAKEPRODUCTS
:
self
.
assert_
(
name
in
names
)
self
.
assert_
(
'gleeb'
not
in
names
)
def
test_file_on_products_path_is_not_product
(
self
):
self
.
makeFakeProducts
()
f
=
open
(
os
.
path
.
join
(
TEMPPRODUCTS
,
'README.txt'
),
'w'
)
...
...
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