Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.buildout
Commits
03ccc2ce
Commit
03ccc2ce
authored
Sep 24, 2016
by
André Anjos
💬
Browse files
Fix test
parent
b5cddd63
Pipeline
#3928
passed with stages
in 6 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/buildout/test_envwrapper.py
View file @
03ccc2ce
...
...
@@ -12,6 +12,15 @@ import platform
from
.envwrapper
import
EnvironmentWrapper
def
cleanup
():
'''Removes weird variables from the user environment just for the tests'''
remove
=
[
'CFLAGS'
,
'CXXFLAGS'
,
'LDFLAGS'
,
'BOB_PREFIX_PATH'
,
'PKG_CONFIG_PATH'
,
'CMAKE_PREFIX_PATH'
,
'MACOSX_DEPLOYMENT_TARGET'
]
for
key
in
remove
:
if
key
in
os
.
environ
:
del
os
.
environ
[
key
]
@
nose
.
with_setup
(
cleanup
)
def
test_default
():
e
=
EnvironmentWrapper
(
logging
.
getLogger
())
...
...
@@ -32,14 +41,6 @@ def test_default():
assert
key
in
before
,
"key `%s' was not on os.environ before"
%
(
key
,)
nose
.
tools
.
eq_
(
before
,
os
.
environ
)
def
cleanup
():
'''Removes weird variables from the user environment just for the tests'''
remove
=
[
'CFLAGS'
,
'CXXFLAGS'
,
'LDFLAGS'
,
'BOB_PREFIX_PATH'
,
'PKG_CONFIG_PATH'
,
'CMAKE_PREFIX_PATH'
,
'MACOSX_DEPLOYMENT_TARGET'
]
for
key
in
remove
:
if
key
in
os
.
environ
:
del
os
.
environ
[
key
]
@
nose
.
with_setup
(
cleanup
)
def
test_set_debug_true
():
...
...
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