BEIJING — Russian President Vladimir Putin’s sudden announcement of constitutional changes that prompted the prime minister’s departure won’t affect increasingly close ties between Beijing and Moscow, China said Thursday.

Under Putin and Chinese leader Xi Jinping, the China-Russian “strategic cooperative partnership has entered a new era, becoming increasingly mature, stable and resilient,” Foreign Ministry spokesman Geng Shuang said at a daily briefing.

Bilateral relations “will not be affected by changes in the international situation and the respective domestic political processes of both sides,” Geng said.

He also praised former Prime Minister Dmitry Medvedev for promoting Russian-Chinese ties, especially in the economic field.

The countries, former Cold War rivals for leadership of the communist bloc, have increasingly close relations over the past two decades.

China has been a key customer for Russian armaments, gas, oil and other resources, while their governments have aligned their foreign policies to oppose U.S. influence in international affairs.

Putin on Wednesday proposed changes to the constitution that could keep him in power well past the end of his term in 2024, setting in motion a surprise shakeup of Russia’s leadership.

Medvedev resigned hours later and Putin named the little-known head of Russia’s tax service to replace him.

While Putin’s plans remain undefined, they have been likened to moves by Xi to consolidate control and make himself the most powerful Chinese leader since Mao Zedong. Xi, who is head of state, leader of the ruling Communist Party and chairman of the committee overseeing the military, has created new working bodies giving him control over state security and other crucial functions of government.

In 2018, Xi had the constitution amended to remove presidential term limits, effectively making him ruler-for-life, a role Putin appears to aspire to also.

Copyright 2020 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.