docstr: Regarding issue pytest-xdist#196
  
  This test came originally from test_remote.py in xdist (ca03269).
docstr_tok: ["Regarding","issue","pytest-xdist","#","196","This","test","came","originally","from","test_remote.py","in","xdist","(","ca03269",")","."]
code: def test_reprentries_serialization_196(
      self, pytester: Pytester
  ) -> None:
      """Regarding issue pytest-xdist#196
  
      This test came originally from test_remote.py in xdist (ca03269).
      """
      from _pytest._code.code import ReprEntryNative
  
      reprec = pytester.inline_runsource(
          """
                              def test_repr_entry_native():
                                  x = 0
                                  assert x
                          """,
          "--tb=native",
      )
      reports = reprec.getreports("pytest_runtest_logreport")
      assert len(reports) == 3
      rep = reports[1]
      assert isinstance(rep.longrepr, ExceptionRepr)
      d = rep._to_json()
      a = TestReport._from_json(d)
      assert isinstance(a.longrepr, ExceptionRepr)
  
      rep_entries = rep.longrepr.reprtraceback.reprentries
      a_entries = a.longrepr.reprtraceback.reprentries
      for i in range(len(a_entries)):
          assert isinstance(rep_entries[i], ReprEntryNative)
          assert rep_entries[i].lines == a_entries[i].lines
  
imports: from typing import Sequence
  from typing import Union
  import pytest
  from _pytest._code.code import ExceptionChainRepr
  from _pytest._code.code import ExceptionRepr
  from _pytest.config import Config
  from _pytest.pytester import Pytester
  from _pytest.python_api import approx
  from _pytest.reports import CollectReport
  from _pytest.reports import TestReport
label_desc: Use image node_id 4 for calling the TestReportSerialization obj's underlying member method code with example usage: obj.test_reprentries_serialization_196(pytester) without return types