From 49fa1274b569151b7b8011a43cae59e2e076d8bd Mon Sep 17 00:00:00 2001
From: Justin Fu <justinjfu@gmail.com>
Date: Thu, 6 Feb 2025 12:22:14 -0800
Subject: [PATCH] Temporarily disable source mapper on win32

---
 tests/source_mapper_test.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/source_mapper_test.py b/tests/source_mapper_test.py
index 973290043..a9d6a5cab 100644
--- a/tests/source_mapper_test.py
+++ b/tests/source_mapper_test.py
@@ -11,6 +11,8 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
+import sys
+
 from absl.testing import absltest
 from absl.testing import parameterized
 from jax import numpy as jnp
@@ -20,6 +22,10 @@ from jax.experimental import source_mapper
 
 class SourceMapperTest(jtu.JaxTestCase):
 
+  def setUp(self):
+    if sys.platform == "win32":
+      self.skipTest("Only works on non-Windows platforms")
+
   def test_jaxpr_pass(self):
     def jax_fn(x, y):
       return x + y