code: def test_concat_axis0_unaligned_cols(self):
      # https://github.com/geopandas/geopandas/issues/2679
      gdf = self.gdf.set_crs("epsg:4326").assign(
          geom=self.gdf.geometry.set_crs("epsg:4327")
      )
      both_geom_cols = gdf[["geom", "geometry"]]
      single_geom_col = gdf[["geometry"]]
      with warnings.catch_warnings():
          warnings.simplefilter("error")
          pd.concat([both_geom_cols, single_geom_col])
      # Check order of mismatch doesn't matter
      with warnings.catch_warnings():
          warnings.simplefilter("error")
          pd.concat([single_geom_col, both_geom_cols])
  
      # Side effect of this fix, explicitly provided all none geoseries
      # will not be warned for (ideally this would still warn)
      explicit_all_none_case = gdf[["geometry"]].assign(
          geom=GeoSeries([None for _ in range(len(gdf))])
      )
      with warnings.catch_warnings():
          warnings.simplefilter("error")
          pd.concat([both_geom_cols, explicit_all_none_case])
  
      # Check concat with partially None col is not affected by the special casing
      # for all None no CRS handling
      with pytest.warns(
          UserWarning,
          match=r"CRS not set for some of the concatenation inputs.*",
      ):
          partial_none_case = self.gdf[["geometry"]]
          partial_none_case.iloc[0] = None
          pd.concat([single_geom_col, partial_none_case])
  
file_path: geopandas/geopandas/tests/test_merge.py
imports: import warnings
  import pandas
  import pyproj
  import pytest
  from geopandas._compat import PANDAS_GE_21
  from geopandas.testing import assert_geodataframe_equal
  from pandas.testing import assert_index_equal
  from shapely.geometry import Point
  from geopandas import GeoDataFrame, GeoSeries
label_desc: Use image node_id 6 for calling the TestMerging obj's underlying member method code with example usage: obj.test_concat_axis0_unaligned_cols() without return types