ryanthompson591 commented on code in PR #17538:
URL: https://github.com/apache/beam/pull/17538#discussion_r879738999


##########
sdks/python/apache_beam/runners/portability/stager_test.py:
##########
@@ -242,7 +242,7 @@ def test_with_main_session(self):
 
   # (BEAM-13769): Remove the decorator once cloudpickle is default pickle
   # library
-  @pytest.mark.skip
+  @pytest.mark.no_xdist

Review Comment:
   For context into what valentyn is ask for... do something like this:
   
   ```
   try:
     staging_dir = self.make_temp_dir()
       options = PipelineOptions()
       options.view_as(SetupOptions).save_main_session = True
       # even if the save main session is on, no pickle file for main
       # session is saved when pickle_library==cloudpickle.
       options.view_as(SetupOptions).pickle_library = pickler.USE_CLOUDPICKLE
       self.update_options(options)
       self.assertEqual([],
                        self.stager.create_and_stage_job_resources(
                            options, staging_location=staging_dir)[1])
   finally:
     # Revert pickle library to the default library.
     pickler.set_library(pickeler.DEFAULT)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to