launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #25899
[Merge] ~cjwatson/launchpad:py3-uuid-hex into launchpad:master
Colin Watson has proposed merging ~cjwatson/launchpad:py3-uuid-hex into launchpad:master.
Commit message:
Use UUID.hex rather than UUID.get_hex()
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/395706
UUID.get_hex() no longer works in Python 3.
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:py3-uuid-hex into launchpad:master.
diff --git a/lib/lp/oci/tests/test_ocirecipebuildbehaviour.py b/lib/lp/oci/tests/test_ocirecipebuildbehaviour.py
index af4b7ae..d33841b 100644
--- a/lib/lp/oci/tests/test_ocirecipebuildbehaviour.py
+++ b/lib/lp/oci/tests/test_ocirecipebuildbehaviour.py
@@ -165,7 +165,7 @@ class TestAsyncOCIRecipeBuildBehaviour(
def setUp(self):
super(TestAsyncOCIRecipeBuildBehaviour, self).setUp()
build_username = 'OCIBUILD-1'
- self.token = {'secret': uuid.uuid4().get_hex(),
+ self.token = {'secret': uuid.uuid4().hex,
'username': build_username,
'timestamp': datetime.utcnow().isoformat()}
self.proxy_url = ("http://{username}:{password}"
diff --git a/lib/lp/snappy/tests/test_snapbuildbehaviour.py b/lib/lp/snappy/tests/test_snapbuildbehaviour.py
index 1424036..6cbfb9a 100644
--- a/lib/lp/snappy/tests/test_snapbuildbehaviour.py
+++ b/lib/lp/snappy/tests/test_snapbuildbehaviour.py
@@ -292,7 +292,7 @@ class TestAsyncSnapBuildBehaviour(StatsMixin, TestSnapBuildBehaviourBase):
def setUp(self):
super(TestAsyncSnapBuildBehaviour, self).setUp()
build_username = 'SNAPBUILD-1'
- self.token = {'secret': uuid.uuid4().get_hex(),
+ self.token = {'secret': uuid.uuid4().hex,
'username': build_username,
'timestamp': datetime.utcnow().isoformat()}
self.proxy_url = ("http://{username}:{password}"