mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix compatibility with latest pytest
pytest removed copy() method from its Namespace class. Use the copy module to make a copy of early options. Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
@@ -28,11 +28,11 @@ so any relative paths given will be based on the ipatests module's path
|
||||
"""
|
||||
|
||||
import os
|
||||
import copy
|
||||
import sys
|
||||
|
||||
import pytest
|
||||
|
||||
import ipalib
|
||||
import ipatests
|
||||
|
||||
# This is set to store --with-xunit report in an accessible place:
|
||||
@@ -83,7 +83,7 @@ class ArgsManglePlugin(object):
|
||||
# are used for initial conftest.py from ipatests, which adds
|
||||
# additional arguments.
|
||||
early_config.known_args_namespace = parser.parse_known_args(
|
||||
args, namespace=early_config.option.copy())
|
||||
args, namespace=copy.copy(early_config.option))
|
||||
|
||||
|
||||
sys.exit(pytest.main(plugins=[ArgsManglePlugin()]))
|
||||
|
||||
Reference in New Issue
Block a user