Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
8b469aba
Commit
8b469aba
authored
Apr 02, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0448570a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
7 deletions
+4
-7
lib/tests/test_zodb.py
lib/tests/test_zodb.py
+1
-3
lib/tests/testprog/zloadrace.py
lib/tests/testprog/zloadrace.py
+0
-1
wcfs/__init__.py
wcfs/__init__.py
+2
-2
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+1
-1
No files found.
lib/tests/test_zodb.py
View file @
8b469aba
...
...
@@ -17,7 +17,7 @@
#
# See COPYING file for full licensing terms.
# See https://www.nexedi.com/licensing for rationale and options.
from
wendelin.lib.zodb
import
LivePersistent
,
deactivate_btree
,
dbclose
,
zconn_at
,
zstor_2zurl
,
zmajor
from
wendelin.lib.zodb
import
LivePersistent
,
deactivate_btree
,
dbclose
,
zconn_at
,
zstor_2zurl
from
wendelin.lib.testing
import
getTestDB
from
wendelin.lib
import
testing
from
persistent
import
Persistent
,
UPTODATE
,
GHOST
,
CHANGED
...
...
@@ -28,8 +28,6 @@ from BTrees.IOBTree import IOBTree
import
transaction
from
transaction
import
TransactionManager
from
golang
import
defer
,
func
from
golang
import
context
,
sync
from
random
import
randint
from
pytest
import
raises
import
pytest
;
xfail
=
pytest
.
mark
.
xfail
...
...
lib/tests/testprog/zloadrace.py
View file @
8b469aba
...
...
@@ -87,7 +87,6 @@ concurrency bugs that lead to corrupt data.
from
__future__
import
print_function
from
ZODB
import
DB
from
ZODB.FileStorage
import
FileStorage
from
ZODB.POSException
import
ConflictError
import
transaction
from
persistent
import
Persistent
...
...
wcfs/__init__.py
View file @
8b469aba
...
...
@@ -312,7 +312,7 @@ def _mntpt_4zurl(zurl):
# mkdir /tmp/wcfs with stiky bit. This way multiple users can create subdirectories inside.
wcfsroot
=
"%s/wcfs"
%
(
tempfile
.
gettempdir
())
wcfsmode
=
0777
|
stat
.
S_ISVTX
wcfsmode
=
0
o
777
|
stat
.
S_ISVTX
if
_mkdir_p
(
wcfsroot
):
os
.
chmod
(
wcfsroot
,
wcfsmode
)
else
:
...
...
@@ -329,7 +329,7 @@ def _mntpt_4zurl(zurl):
# mkdir -p.
def
_mkdir_p
(
path
,
mode
=
0777
):
# -> created(bool)
def
_mkdir_p
(
path
,
mode
=
0
o
777
):
# -> created(bool)
try
:
os
.
makedirs
(
path
,
mode
)
except
OSError
as
e
:
...
...
wcfs/wcfs_test.py
View file @
8b469aba
...
...
@@ -859,7 +859,7 @@ def watch(twlink, zf, at, pinok=None): # -> tWatch
# blk ∉ pin_prev, blk ∈ pin -> cannot happen, except on first start
if
blk
not
in
pin_prev
and
blk
in
pin
:
if
at_prev
is
not
None
:
fail
(
'#%d pinned %s; not pinned %s'
%
(
at_prev
,
at
))
fail
(
'#%d pinned %s; not pinned %s'
%
(
blk
,
at_prev
,
at
))
# blk ∈ pin -> blk is tracked; has rev > at
# (see criteria in _pinnedAt)
...
...
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