A Sudanese woman, who was charged with indecency for wearing trousers, has been spared 40 lashes.
Lubna Ahmed al-Hussein, who is in her 30s, had faced a penalty of 40 lashes but was handed a €139 fine.
However, she was jailed for a month when she refused to pay the fine.
Ms Hussein was charged with public indecency under Sudan's Islamic law after she was arrested in July along with 12 other women who were wearing trousers at a Khartoum restaurant.
40 people were arrested outside the court when women's rights activists scuffled with Islamists and riot police.
They chanted slogans in support of Ms Hussein before police dispersed the protest.
The witnesses said police also prevented news photographers from taking pictures of the protest.
'This is a bad law. It is not in our tradition to whip women,' one veiled protester said.
Article 152 of Sudan's 1991 penal code, which came into force two years after the coup that brought President Omar al-Beshir to power, stipulates a maximum of 40 lashes for people convicted of wearing 'indecent clothing'.
On Friday, Amnesty International urged the Khartoum government to withdraw the charges against Ms Hussein, saying the law used to justify flogging women for wearing clothes deemed 'indecent' should be repealed.
Today's hearing was expected to determine whether Ms Hussein, who works for the left-wing Al-Sahafa newspaper as well as with the UN press office in Khartoum, has legal immunity.
Ms Hussein had said she wanted to be tried to challenge the law, and that she wished to waive her UN immunity.
Ten women have already been whipped for the same offence, including Christians, and Ms Hussein has said she will fight a guilty verdict and the law itself.