We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cec528 commit b267fb5Copy full SHA for b267fb5
mypyc/test-data/run-base64.test
@@ -50,3 +50,12 @@ import librt.base64
50
51
def test_b64encode_not_available() -> None:
52
assert not hasattr(librt.base64, "b64encode")
53
+
54
+[case testBase64UsedAtTopLevelOnly_librt_experimental]
55
+from librt.base64 import b64encode
56
57
+# The only reference to b64encode is at module top level
58
+encoded = b64encode(b"x")
59
60
+def test_top_level_only_encode() -> None:
61
+ assert encoded == b"eA=="
0 commit comments