Skip to content

Commit 8536ef2

Browse files
yashk2810copybara-github
authored andcommitted
Fix some failures due to an upcoming change to PartitionSpec where it no longer inherits from a tuple.
PiperOrigin-RevId: 755602718
1 parent 5a4cc06 commit 8536ef2

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

fiddle/_src/codegen/auto_config/ir_to_cst_test.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from fiddle._src.codegen.auto_config import make_symbolic_references
2626
from fiddle._src.codegen.auto_config import shared_to_variables
2727
from fiddle._src.codegen.auto_config import test_fixtures
28-
import jax.sharding
2928
import libcst as cst
3029

3130

@@ -76,15 +75,6 @@ def test_code_for_positional_arg_call(self):
7675
"self.foo(123.4, bar=self.bar)",
7776
)
7877

79-
def test_code_for_expr_jax_partition_spec(self):
80-
"""This is a very weird overridden tuple."""
81-
value = jax.sharding.PartitionSpec("data")
82-
with self.assertRaisesRegex(
83-
TypeError,
84-
r"Failed to map.*PartitionSpec.*subclasses list or tuple.*",
85-
):
86-
ir_to_cst.code_for_expr(value)
87-
8878
def test_basic_ir(self):
8979
task = test_fixtures.simple_ir()
9080
make_symbolic_references.import_symbols(task)

0 commit comments

Comments
 (0)