tests/test-rust-ancestor.py
changeset 46113 59fa3890d40a
parent 43944 8a8305f557d0
child 48875 6000f5b25c9b
--- a/tests/test-rust-ancestor.py	Sun Dec 13 18:29:22 2020 -0800
+++ b/tests/test-rust-ancestor.py	Tue Dec 01 21:54:46 2020 +0100
@@ -2,10 +2,8 @@
 import sys
 import unittest
 
-from mercurial import (
-    error,
-    node,
-)
+from mercurial.node import wdirrev
+from mercurial import error
 
 from mercurial.testing import revlog as revlogtesting
 
@@ -150,7 +148,7 @@
         # WdirUnsupported directly
         idx = self.parseindex()
         with self.assertRaises(error.WdirUnsupported):
-            list(AncestorsIterator(idx, [node.wdirrev], -1, False))
+            list(AncestorsIterator(idx, [wdirrev], -1, False))
 
     def testheadrevs(self):
         idx = self.parseindex()